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 |
What is the use of zend framework?
How to use update statemnet in zend framework?
What do you mean by service manager in zend framework 2?
What is full form of cla in zend framework?
Explain why are in-built libraries used for the web services?
What is models in zend framework?
What is zend engine?
What are the advantages of zend framework?
What are the features of zend framework?
How to check request is ajax in zend framework?
How to install zend on your local machine?
Which version of php does zend framework require?