I'd like to get--from a shell--the names of all models that are in
app/models dir (NOT Cake's models). I realise that I could scan the
dir and use Inflector and App:import(), but is there already some way
to do this? Nothing in the API jumps out at me.

The reason I'd like to do this is to check which models implement a
particular Behavior. I know I could keep a list of model names as a
class var in the Behavior and import() it into the shell, but then I'd
need to update the array each time I add the Behavior to a model's
$actsAs array. While that would work, it's not very elegant and prone
to error.

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