I noticed the missing ! as I pressed send ;).

The 'problem' is only that all the files in yoru models directory are
loaded by cake, and the order they are loaded depends on their name
(which is dictated by convention).

therefore: if you try to extend a class that isn“t loaded when the
model file is included, you get an error. If you include it yourself it
then means that you can load your class but you are redeclaring the
parent because it's 'on the list' of files that cake is going to
include and you get an error.

using class_exists is a bit of a hack but avoids problems. Anyway, hth,

AD7six


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

Reply via email to