Hi and thanks all,
just going straight to the problem I'm having with the naming
conventions in Cake.
Just setup a test env with the latest Stable (1.1.14.4797),
then I create a controller

class NotiziaUtentiController extends AppController {
   var $name = 'NotiziaUtenti';
   var $scaffold;
}

("Notizia" means News, singular in Italian, while "Utenti" means
Users)
and then I try to call it from the browser http://localhost/notizia_utenti/
but Cake asks me to create app/models/notizia_utentus.php
even if I've got
$irregularPlural = array('notizia' => 'notizie', 'utente' =>
'utenti');
in the /app/config/inflections.php .

After many attempts I've found to make it working adding *both*
'notizia_utente' => 'notizia_utenti'
to /app/config/inflections.php
and an handmade rule to /cake/libs/inflector.php in the var
$coreSingularRules
'/(utent)i$/i' => '\1e',

Has anyone a trail of where I'm wrong or a link/document to read about
that?
Or is that a bug? (unlikely, I suppose, but is what I've thinked being
"forced" to modify the core)

Thanks again,
Paolo


--~--~---------~--~----~------------~-------~--~----~
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