Miles has the better way of doing things.

But just to directly answer your question, App::import basically does
the same as the old-school php include function.

So you'll do something like:
 App::import('Model', 'MyModel');
$mymodel = new MyModel();

Hope that helps.

On Apr 11, 7:18 am, Miles J <[email protected]> wrote:
> $uses is fine if you have a couple models, say 1-5.
>
> Once you start getting more then that, use class registry instead.
>
> $results = ClassRegistry::init('Model')->find();
>
> Class registry calls app import itself.
--~--~---------~--~----~------------~-------~--~----~
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