How to include js from controller and view in zend framework?
Answer / Shashank Srivastava
In Zend Framework, you can include JavaScript files either from your controller or view script. Here's an example using the view:n1. In your layout file (e.g., application/layouts/scripts/layout.phtml), add this line to the head section: `echo $this->headScript()->appendFile('path-to-your-js-file');`
| Is This Answer Correct ? | 0 Yes | 0 No |
Which class extend the zend controller? Zend_controller_action
What is the zend file upload and element decorators?
What new in zend framework 2.0?
How we can check post method in zend framework?
How we can set routing in zend framework2?
Zend_cache provides a generic way to cache any data?
What is autoloader?
How to create object of model?
How to check post method in zend framework?
Is zend_cache provides a generic way to cache any data?
Tell me what are the basic operations performed by the decorator?
How can I use a stored procedure in a mysql database with zend framework?