-
Pet Projects
Tag Archives: Zend_View
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
I’m a bit busy at the moment so I am going to quote directly from Matthew’s blog Yesterday, we released Zend Framework 1.7.5. It contains a somewhat controversial security fix to Zend_View that could potentially affect some use cases of … Continue reading
Zend DevZone has a new article up. What is a View Helper? A View Helper is simply a class that follows particular naming conventions, When attached to a view object, you can call the helper as if it were a … Continue reading
In his blog post, he used something that I didn’t know or hear about — headLink() and headScript(). So I went ahead to add a comment and asked for an example. Then I got it — he has a new … Continue reading