On Dec 7, 6:39 am, 7elephants <[EMAIL PROTECTED]> wrote:
> Does anybody know if there is a already available method for getting
> the list of available models within a component and/or controller?
>
> Thank you in advance.
Check the api, depends on your version of cake
$models = loadModels();
$models = Configure::listObjects('Model');
hth,
AD
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---