Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to include css and js from the controller in the zend framework?



How to include css and js from the controller in the zend framework?..

Answer / Teena

To include CSS and JS files from a controller in Zend Framework, add them as properties within your view script or layout. Then, you can use PHP's echo statement to output the URL of these assets. For example: echo $this->headLink()->appendStylesheet('/path/to/styles.css'); and echo $this->doctype()->head()->appendScript('/path/to/script.js')

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Zend Interview Questions

Explain what is the function of action helper in zend?

1 Answers  


How to print a group display individually from its content?

1 Answers  


What new in zend framework 3.0?

1 Answers  


How to create an object of model in zend framework?

1 Answers  


What are the ways in which the file can be detected as being uploaded or not?

1 Answers  


Difference between zend_registry and zend_session?

1 Answers  


Why should we use framework?

1 Answers  


How can you get a module name in bootstrap file.

1 Answers  


What is the function of action helper in zend?

1 Answers  


How to add custom view helpers to zend framework 2

1 Answers  


Why does the zend framework project have a cla at all?

1 Answers  


What is the use of bootstrap?

1 Answers  


Categories