Marcelo,

The $uses property in controller solved my problem !!!

Thanks for the help !!


Valeu Cara !!!!!


Thiago Elias.





2009/7/19 Marcelo Andrade <[email protected]>

>
> On Fri, Jul 17, 2009 at 5:13 PM, Thiago Elias<[email protected]>
> wrote:
> >
> > I'm new in cake, and I've been experiencing some problems with composed
> > plural in cakephp 1.2 (the last stable release)
> >
> > e.g.:
> > DataComemorativa
> > should be
> > DatasComemorativas..
> >
> > Datas Comemorativas in Portuguese means Special Dates (or something like
> > that).
> >
> > The matter is: I can't make cakePHP recognize it, even using the
> > inflections.php
> >
> > I've tried to set
> >
> > $irregularPlural = array(
> >         'data_comemorativa' => 'datas_comemorativas'
> > )
>
> I'm brazilian and setting the proper entry at the
> $irregularPlural in the inflections allways works to
> me.
> Have you tried to to set the $useTable property
> in your model and the $uses in your controller?
>
> class DataComemorativa extends AppModel {
>    var $useTable = 'datas_comemorativas';
>   // ...
>
> class DatasComemorativasController extends AppController {
>    var $uses = array('DataComemorativa');
>
> Best regards.
>
> --
> MARCELO DE F. ANDRADE
> Belem, PA, Amazonia, Brazil
> Linux User #221105
>
> http://mfandrade.wordpress.com
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to