Re: get all models in app

2009-09-22 Thread Miles J
Well no its actually not, Configure::listObjects('model') calls App::objects('model') internally though. But I forget which one will be deprecated :P On Sep 22, 12:45 pm, brian wrote: > On Tue, Sep 22, 2009 at 12:33 PM, Miles J wrote: > > > App::objects('model'); > > Nope. I think that's from

Re: get all models in app

2009-09-22 Thread brian
On Tue, Sep 22, 2009 at 12:33 PM, Miles J wrote: > > App::objects('model'); Nope. I think that's from an old version. You did jog my memory, though. It's Configure::listObjects('model'). Thanks. --~--~-~--~~~---~--~~ You received this message because you are subs

Re: get all models in app

2009-09-22 Thread Miles J
App::objects('model'); On Sep 21, 5:41 pm, brian wrote: > 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

get all models in app

2009-09-21 Thread brian
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 w