ou maan
don't use
App::import('Model', $key);
$this->$key = new $key;
use $this->{$key} = ClassRegistry::init($key); //ClassRegistry will
automatically load model and do all stuff that need to be done
and also...set() method is controller method, not component method
and for render is the same
use $this->Controller->set(); and $this->Controller->render();
--
Lep pozdrav, Tilen Majerle
http://majerle.eu
2012/3/11 romel javier gomez herrera <[email protected]>
> App::import('Model', $key);
> $this->$key = new $key;
>
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php