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.

4 Comments on How to include multiple javascript files in Zend Framework

Leave a Reply

Your email address will not be published. Required fields are marked *




DHgate Computers - Computers, Cell Phones & more
  • We find everbuying built in php and use css to control the style.

About Author

PHP Freelancer

PHP Freelancer I am PHP Freelancer, Rakshit Patel working as PHP Programmer India. I am here to share all my developing knowledge with you people. For Hire PHP Developer India, contact me.
Follow on twitter: @raxit4u2

Get Free Programming Tutorials:

Become a Fan

Popular Topics

Recent Posts

Most Popular

Recent Comments

Get a Free Quote
Security Question: 3 + 8 = ?