A web developer's blog. PHP, MySQL, CakePHP, Zend Framework, Wordpress, Code Igniter, Django, Python, CSS, Javascript, jQuery, Knockout.js, and other web development topics.

Tag Archives: Zend_View

Zend Framework: Adding Javascript files depending on Controller

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


Zend_View security issue fixed in ZF 1.7.5

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

Leave a comment

Zend_View Helper Tutorial

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

Leave a comment

Zend_View Placeholders by Matthew Weier O`Phinney

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

Leave a comment