On my way to php5 I ran across a pain -- Catch is a keyword and in my
fishing application I have a Catch model. I am trying to avoid
renaming (in controllers, views, models, db, everywhere!) for a number
of reasons and the real problem is just the model class name - I can
use it in var names etc:

class Catch extends AppModel
{
        var $name = 'Catch';

Is there some way I can rename this model Class (and associated models
that reference it) and not have to rename the controller, views, etc?
Or perhaps just rename the class and make the controller use a class
named 'Katch' for example without redoing all my vars, views,
controller code, etc?

What will Cake do if the var $name= does not mnatch the Class name in
the model?

Man this is fugly -- and I really want to stay with Catches for many
ui reasons (urls, action names, etc).


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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