-
Pet Projects
Tag Archives: headstyle
I had similar instances on where I had to do this on my application. To add a Javascript depending on what Controller is loaded, you do this: <?php class ReportController extends Zend_Controller_Action { public function init() { $this->view->headScript()->appendFile(’path/to/the/javascript/file’); } … Continue reading