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 |
Why does the zend framework project have a cla at all?
What are the methods used in decorator?
Configuration in zend framework, application.ini file?
How to get client's timezone?
Explain filters in zend framework with examples?
Please write down a program to show the execution of the application?
Difference between zend_registry and zend_session?
How to add a view helper directory (zend framework)?
What are the steps kept in mind while designing the zend_form?
Explain the use of bootstrap used in zend framework?
How to install zend framework2 on shared hosting server?
How do I use viewscripts on zend_form file elements?