How to include css from controller and view in zend
Answer / Atendra Singh
In Zend Framework, you can include CSS files by specifying their paths in the layout file (usually located at application/layouts/scripts/layout.phtml). For example, to include a stylesheet located at public/css/styles.css, add the following line: `<link rel="stylesheet" type="text/css" href="$this->baseUrl('/css/styles.css')" />`. In the controller or view, you can also use the baseUrl() function to generate the correct URL.
| Is This Answer Correct ? | 0 Yes | 0 No |
How to create model file in zend framework?
How to install zend on your local machine?
Difference between javascript ajax request vs jquery $.ajax?
Which class extend the zend controller? Zend_controller_action
How we can add custom view helpers to zend framework 2?
Explain form element decorators in zend framework2?
What is zend engine?
Tell me what is the function of model in mvc architecture?
What are the advantages of zend framework 3? Explain
How to include js from controller and view in zend?
How to check request is ajax in zend framework?
Name some important component in zend framework?