Skip to main content


Showing posts from April, 2008

PHP Icons in Amsterdam

This Monday I received an invitation from iBuilding's CTO Ivo Jansch to come down to Amsterdam to have dinner with Zend's Chief Editor Cal Evans, symfony gury and iBuilding's consultant Stefan Koopmanschap and Zend developer Remi Woler.

Besides having a great dinner at a typical Amsterdam diner Moeders (thanks Ivo!), I enjoyed the good conversations with all and totally by surprise Cal had not forgotten Stefan and I once asked him for a Zend water cooler. We both have now a signed copy of Cal's book "php|architect's Guide to Programming with Zend Framework". Thank you Cal.

Afterwards I surprised Cal and Ivo with a mild Cuban cigar while we were heading back to the hotel both Cal and Ivo stayed.

After a late night drink I took Remi with me to drop him off at his house (a little d-tour to Gouda) before I arrived back home in the arms of my wife who was by then already fast asleep.

Login and authentication with Zend Framework

As part of my tutorial, I don't want to exclude the magnificent "Login and Authentication with Zend Framework" how to by Matthew Weier O’Phinney.

Although it's not using a configuration file to render the form, it's a magnificent mini tutorial on how you should implement Zend_Form for authentication purposes, hence all kinds of purposes.

Quoting Cal Evans on Zend Developer Zone: "If you are working with Zend Framework then this is a must read tutorial.". I agree completely !

Tutorial on using Zend_Form with Zend_Config_Xml and selectboxes

Using config files is great for creating rapid forms, but sometimes you need something extra like select boxes filled with data (e.g. states, countries, ...). How are you going to implement this ?

Well, I created a view helper to fetch those common listings from my database when I was using pre 1.5 Zend Framework form elements.

My /application/default/views/helpers/getListing.php file:
/** * View helper class to retrieve common listings from
* the database
* @author Michelangelo van Dam
* */
class Zend_View_Helper_GetListing{
// our database adapter
// property to access the "view" part of MVC
* we initiate the view and our database adapter
* @param Zend_View_Interface $view
public function setView(Zend_View_Interface $view) {
$this->_view = $view;$this->_dbAdapter = Zend_Registry::get('db');

* Let's fetch our listing from the database
* @param string $listing
* @return array
public fun…