you can load model to controller, so something like
$this->Controller->loadModel('ModelName') and then you can use it with
$this->Controller->ModelName->methodName();
or you ClassRegistry::init('ModelName'); to initialize a model :)
--
Lep pozdrav, Tilen Majerle
http://majerle.eu
2012/3/10 romel javier gomez herrera <[email protected]>
> hi!.
>
> I'm getting this error when trying to do:
>
> Fatal error: Call to undefined method
> DependentSelectBoxComponent::**loadModel()
> in /var/www/select/app/**Controller/Component/**
> DependentSelectBoxComponent.**php on line 17
>
> --
> 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
>
--
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