I think I can do the same by using
var $name = "Clienti";
In controllers and models, it seems to work like this. (in model I use
var $useTable ="Clienti";)
Anyway, If I use "Clienti" the plural should be Clientis, not
Clientus! I looked everywhere, and there is no Clientu, so where does
it take the U? Also, If i remove the "i" Client, it looks for Clients,
when I add the last i it looks for Clientus...

On 27 Ott, 12:59, cakeFreak <[EMAIL PROTECTED]> wrote:
> Ciao Paolo,
>
> CakePHP speaks in English, not Italian.
>
> Therefore you must teach CakePHP Italian singular/plural rules in your
> app/config/inflections.php
>
> an example for you:
> ----------------------------------------------------------------------------------------
> $irregularPlural = array('gruppo'=>'gruppi',
>                                  'utente'=>'utenti',
>                                  'impianto'=>'impianti',
>                                  'provincia'=>'province',
>                                  'regione'=>'regioni',
>                                  'prodotto'=>'prodotti',
>                                  'contatto'=>'contatti',
>                                  'referenza'=>'referenze',
>                                  'sezione'=>'sezioni',
>                                  'cliente'=>'clienti');
> ----------------------------------------------------------------------------------------
>
> In this way you can have a model class called "Cliente" and a
> controller class called "Clienti" for a "clienti" DB table.
>
> Dan
> On Oct 26, 10:13 am, Paolo <[EMAIL PROTECTED]> wrote:
>
> > Hi all!
> > I have a problem with CAke. In every page it displays a "m" at the
> > top, sometimes it add  something more, such as null,null,null,'Comuni/
> > nome');?>
>
> > What can be the cause of this?
>
> > Also, I have a model called Clienti, I use this name in model and
> > controller, but it complains saying it can't find Clintus Model!!! If
> > in the controller I change the name in Client for example it tells me
> > it can't find Client, but when I add the i it changes it to
> > Clientus!!!
>
> > Any help?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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