Hi Mattalex

You can either use the php function class_exists, which checks if the
class has been defined.
And in case it has not been defined, check for the file in the MODELS
directory.

Enjoy,
   John

On Apr 19, 7:37 am, mattalexx <[email protected]> wrote:
> Is there any way to know if a model exists if you have the name of it
> in a string?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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