Loading…

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

  • Create AppController.php
  • Include _getHelper() method in AppController.php
  • Create any controller in any module
  • From controller in the header section, append or prepend JavaScript/ CSS files dynamically in Zend framework
  • From the controller, append or prepend custom JavaScript code dynamically in HTML header
  • Then, from the controller, append or prepend custom javascript code dynamically just before at bottom to finish

Suggest An Answer

No suggestions avaliable!

Latest post from Zend Framework Interview Questions

Ask Question