Archive for October, 2010

Matthew Weier O’Phinney: Using Action Helpers To Implement Re-Usable Widgets

Matthew Weier O’Phinney has just published an article on how to create reusable widgets with action helpers.

I had a twitter/IRC exchange yesterday with Andries Seutens and Nick Belhomme regarding applications that include widgets within their layout. During the exchange, I told Andriess not to use the action() view helper, and both Andriess and Nick then asked how to implement widgets if they shouldn’t use that helper. While I ended up having an IRC exchange with Nick to give him a general idea on how to accomplish the task, I decided a longer writeup was in order.

He then goes on to explain how to create a module that does not have controllers and actions, but instead uses an action helper to create a widget that allows a user to log in.

Posted by Rob on 5th October 2010 under Around the web | Comments Off

Devzone article on Zend_Config

Vikram Vaswani has written an article on Manipulating Configuration Data with Zend_Config.

Zend_Config seemed to meet my needs, so I played with it a little and then deployed it in a couple of projects. It did everything I needed it to, and was easy to integrate with both framework and non-framework PHP projects. It also has a couple of neat features, such as the ability to merge multiple configurations together. Keep reading and I’ll give you a quick crash course in how it works.

He then provides details on how to use Zend_Config to read and write XML and INI config files with plenty of code examples and screenshots as appropriate.

Posted by Rob on 3rd October 2010 under Around the web | Comments Off