How to include css from controller and view in zend



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

Post New Answer

More Zend Interview Questions

Do you know what is the way in which the html can be used to form elements?

1 Answers  


How to disable layout from controller in zend framework?

1 Answers  


Checking whether form posted or not in zend framework?

1 Answers  


How we can set routing in zend framework2?

1 Answers  


Does zend framework support php 7?

1 Answers  


What is the major difference between zend_auth and zend_acl?

1 Answers  


How to write a program that performs the calculations using the sql function?

1 Answers  


Explain the use of bootstrap used in zend framework?

1 Answers  


Writing a subquery using zend db?

1 Answers  


How to include js from controller and view in zend framework?

1 Answers  


How to print exact sql query in zend framework ?

1 Answers  


How to check whether a form posted or not in the zend framework?

1 Answers  


Categories