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 |
Do you know what is the way in which the html can be used to form elements?
How to disable layout from controller in zend framework?
Checking whether form posted or not in zend framework?
How we can set routing in zend framework2?
Does zend framework support php 7?
What is the major difference between zend_auth and zend_acl?
How to write a program that performs the calculations using the sql function?
Explain the use of bootstrap used in zend framework?
Writing a subquery using zend db?
How to include js from controller and view in zend framework?
How to print exact sql query in zend framework ?
How to check whether a form posted or not in the zend framework?