Looking to Build/Redesign a Website or Blog ?

To speak to Rakshit, call +91 968 704 2303

How to include multiple javascript files in Zend Framework


Hello Friends,

If you are working with javascript files and using Zend Framework than you must be aware with how to include javascript files in view files ? Look at below syntax to include more than one javascript files.  If you write individual statement for each file than it will include first file 2 times and so on. So include all javascript files in a single statement.


echo $this->headScript()->appendFile($this->baseUrl() . ‘/public/js/jquery-1.3.2.js’)->appendFile($this->baseUrl() . ‘contact.js’);


Let me know if you find any problem.



Leave a Reply

Your email address will not be published.