thanks for your quick response.
can you please tell me how to use it?

is it like this?
test_controller.php
=================
class TestController extends AppController
{
        var $name = 'Test';
        App::Import('Model', 'ModelName');
}
=================

On Mar 6, 7:28 pm, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote:
> On Thu, Mar 6, 2008 at 6:37 PM, fahad19 <[EMAIL PROTECTED]> wrote:
>
> >  is there any other way how you can load models in a controller without
> >  'var $uses'?
>
> Yes,
>
> Try App::Import('Model', 'Modelname'); or try to get an instance from
> the ClassRegistry::getInstance( ) if the model already has an instance
> but is not there in the controller for whatever reason
>
> HTH
>
> Tarique
>
> --
> =============================================================
> Cheesecake-Photoblog:http://cheesecake-photoblog.org
> PHP for E-Biz:http://sanisoft.com
> =============================================================
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to