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 |
Explain the difference between component, helper, behavior in cakephp?
What is default function for a controller?
What are component, helper and why are they used?
How to write, read and delete the session in cakephp?
List some database related functions in cakephp.
When cakephp was developed?
How to display the schema of the model?
What is habtm?
Is cakephp a mvc?
How many types of caches does cakephp support?
List some of the features in cakephp?
How to fetch data from database in cakephp?