Re: How to detect if a model is being loaded or not
On Sat, Apr 2, 2011 at 12:44 PM, Ma'moon <phpirate@gmail.com> wrote:
> Hi,
> Is there any way to detect if a model is already been loaded or not,
> something like a method called "$this->isLoaded($modelName)" that you can
> call from within the controller?
> Thanks in advance for any help :)
ClassRegistry::isKeySet('ModelName')
http://api.cakephp.org/class/class-registry#method-ClassRegistryisKeySet
--
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
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home