about 9 years ago
In cakephp we load component by using code
copytext
public $components = array('Custom');
but we might not need this in all actions so we can load this component on fly under actions for example
public function test(){ $this->Customr = $this->Components->load('Custom'); $this->Custom->getAction();}
public function test(){ $this->Customr = $this->Components->load('Custom'); $this->Custom->getAction(); }
Can you help out the community by solving one of the following PHP problems?
What issue/bug trackers are the best according to y...
How to Instantiate Class Using Namespaces in PHP?
Update Password
Do activity (Answer, Blog) > Earn Rep Points > Improve Rank > Get more opportunities to work and get paid!
For more topics, questions and answers, please visit the Tech Q&A page.
Starting with Chrome version 45, NPAPI is no longer supported for Google Chrome. For more information, see Chrome and NPAPI (blog.chromium.org).
Firefox and Microsoft Internet Explorer are recommended browsers for websites using java applets.
Chrome Version Support
Are you sure, you want to delete this comment?
Sign up using
0 Comment(s)