How to include js from controller and view in zend framework?
Answer Posted / 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 |
Post New Answer View All Answers