Actually that should be:
$Model =& ClassRegistry::init('Model');
-MI
---------------------------------------------------------------------------
CakeFest Hispano: December, 2008 - Buenos Aires, Argentina -
http://es.cakefest.org
Remember, smart coders answer ten questions for every question they ask.
So be smart, be cool, and share your knowledge.
BAKE ON!
blog: http://www.MarianoIglesias.com.ar
-----Mensaje original-----
De: [email protected] [mailto:[EMAIL PROTECTED] En nombre
de Dr. Tarique Sani
Enviado el: Jueves, 06 de Marzo de 2008 10:28 a.m.
Para: [email protected]
Asunto: Re: Alternative way of loading a model
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
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---