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 js from controller and view in zend framework?



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

Answer / Shashank Srivastava

In Zend Framework, you can include JavaScript files either from your controller or view script. Here's an example using the view:n1. In your layout file (e.g., application/layouts/scripts/layout.phtml), add this line to the head section: `echo $this->headScript()->appendFile('path-to-your-js-file');`

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Zend Interview Questions

Which class extend the zend controller? Zend_controller_action

1 Answers  


What is the zend file upload and element decorators?

1 Answers  


What new in zend framework 2.0?

1 Answers  


How we can check post method in zend framework?

1 Answers  


How we can set routing in zend framework2?

1 Answers  


Zend_cache provides a generic way to cache any data?

1 Answers  


What is autoloader?

1 Answers  


How to create object of model?

1 Answers  


How to check post method in zend framework?

1 Answers  


Is zend_cache provides a generic way to cache any data?

1 Answers  


Tell me what are the basic operations performed by the decorator?

1 Answers  


How can I use a stored procedure in a mysql database with zend framework?

1 Answers  


Categories