hey,
there is actually a file called :
/app/config/inflections.php
which allows you application level control over how Cake pluralises
and singularises Controllers and Models.
There is a file reference in the API :
http://api.cakephp.org/app_2config_2inflections_8php.html
This may help you p
dz
Inviato: sabato 27 gennaio 2007 2.17
A: Cake PHP
Oggetto: Re: Pluralisation and bake error
Hope this help you:
I had the same error, I got a Model named Reactivo which is associated with
model Competencia this way: Reactivo belongsTo Competencia Competencia has
the $displayField = 'compet
Hope this help you:
I had the same error, I got a Model named Reactivo which is associated
with model Competencia this way: Reactivo belongsTo Competencia
Competencia has the $displayField = 'competencia' declared variable and
I realized that cake was trying to singularize competencia into
compete
I've had problems recently with scaffolding on models named "Model",
"Analysis", and "Status". My fix for the first one was to prefix some
letters ("UwModel") to the name (maybe "Model" is some kind of reserved
name in this MVC framework??). For the others, I just baked the files
and made the manu
Hi Geoff
Thanks for the feedback. For now I have worked around the problem by
using another name for the model/controller, however I am sure that this
will come in handy in the future. Nice work. :-)
Regards,
Langdon
> The problem is the Inflector::singularize() function, the fix that I've
Hi Langdon,
The problem is the Inflector::singularize() function, the fix that I've
suggested is to add in "'.*us', '.*ss'" to the $coreUninflectedSingular
array list this:
$coreUninflectedSingular = array('.*[nrlm]ese', '.*deer', '.*fish',
'.*measles', '.*ois', '.*pox', '.*rice', '.*sheep', '.*
Hi
I am attempting to bake a model/view/controller that has a belongsTo
association to a model called: "process". Therefore this model (called
"ouput") has a foreign key process_id for the association.
However, when I run bake for "output" I get a fatal error thus:
PHP Fatal error: Call to