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

What is the use of zend framework?

1 Answers  


How to use update statemnet in zend framework?

1 Answers  


What do you mean by service manager in zend framework 2?

1 Answers  


What is full form of cla in zend framework?

1 Answers  


Explain why are in-built libraries used for the web services?

1 Answers  


What is models in zend framework?

1 Answers  


What is zend engine?

1 Answers  


What are the advantages of zend framework?

1 Answers  


What are the features of zend framework?

1 Answers  


How to check request is ajax in zend framework?

1 Answers  


How to install zend on your local machine?

1 Answers  


Which version of php does zend framework require?

1 Answers  


Categories