How to include helpers in controller ?
Answer / Nihit Kumar
To include a helper in a CakePHP controller, you can use the 'Components' property within your controller class and assign the helper as a component. For example: class MyController extends AppController { public $components = array('MyHelper'); }
| Is This Answer Correct ? | 0 Yes | 0 No |
Which function is executed before every action in the controller?
Write the latest version of cakephp?
How to convert html to pdf in cakephp?
What are components in cakephp.
What are the key features of cakephp?
How we can set custom page title in cakephp?
What is the folder structure of cakephp?
Explain the difference between beforerender() and beforefilter() in cakephp?
What is a component in cakephp?
What are hooks in cakephp?
What is the default extension of view files? How we can change it?
Which is better cakephp or codeigniter?