Category Archives: PHP

Using YAML with the Zend Framework

One of the many great components provided by the Zend Framework is Zend_Config. In a nutshell, this component allows you to access configuration data (from a file, array, etc) through a nested object property based interface. Out of the box, the component supports working with XML and INI files via the Zend_Config_Ini and Zend_Config_Xml Config [...]

Letting the masses decide…

Sho Kuwamoto has been doing some excellent work on implementing improved pluralization support for PHP, Ruby on Rails and AppleScript. When I put together a quick solution for this in PHP, I couldn’t help but think that there might be some missing special cases or what have you. Well, Sho has now put together a [...]

Perforce Knowledge Base Launched

In case you missed the announcement, the Perforce Knowledge Base is now available. Click here for more information about the technology driving the site.

Using Smarty with the Zend Framework

So it appears that the Zend Framework is approaching a 1.0 release, which is very exciting. The last time I worked with the ZF, I found the capabilities of the Zend_View class to be a little bit limited. Luckily, somebody has written a tutorial on using the Smarty template engine with the Zend Framework. Read [...]

PHP Pluralize Method

I recently found myself wanting a rails-esque pluralize function like that found in the Rails Inflector class. After inspecting the Rails implementation, and playing around a bit, I was able to get a PHP version working as a Smarty variable modifier. Thank goodness for the rails version, I have no idea how I would go [...]