Hi.

In a recent thread i started (sorry about the missing link) i discussed
having a model inherit other model other than AppModel. The problem was i
couldn't be sure the other model was loaded at the time.

AD7six suggested (thanks) creating a model outside models path and
explicitly including it in the child class definition file. Although that
approach works it also has a problem: i can't use the base model normally!

Looking at the code i found out an easy solution: in loadModel() change
require calls with require_once calls. With that simple change, i could
just do a loadModel(BaseModel) in the child class definition file and that
would make sure the model was loaded.

Master bakers, what do you think?

-- 
Gonçalo Marrafa <[EMAIL PROTECTED]>

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

Reply via email to