Pragmatism in the real world

Demo!

Tomorrow morning, I get to demo our first Zend Framework powered application to the MD of the client's company. I'm dealing with the IT director there, so it's a little nerve-wracking to be presenting to the boss-man! The demo is going to go well as it's a pretty damn good application. Tomorrow I'm gonna write an Active Record type class to make dealing with the database easier. Zend_Db_Table just doesn't cut it!

AkCom: The Akrabat Components for the Zend Framework

I have a real world project to deliver that will be based on the Zend Framework, so I'm actually putting in time to get a system that works for me. Some of the work I'm doing, I've decided to release under the same license as the Zend Framework and I've decided to use the name AkCom. I was using Akrabat, but decided that it's too generic for me and I might have other plans for… continue reading.

Dynamic Tabs Subversion Respository

With the help of Cliff, I've finally got a publically accessible subversion repository online at http://svn.akrabat.com! The first project with actual code in it is my Dynamic Javascript Tabs. I've updated the trunk to include the change suggested by Samio so that the "activation" code is not part of the js file and is not part of the htm file.

Zend_Config: Iteration and Arrays

An question about iteration, arrays and Zend_Config was posted to the Zend Framework's mailing list by Troy Marker. I thought I'd repeat it here as the solution shows how flexible Zend_Config can be. The post was: … First off I am using an XML file for the data: < ?xml version="1.0"?> <config> <lists> <root> <line1> <link>/index/show/gallery/cars/</link> <text>Cars</text> </line1> </root> </lists> </config> I am trying to iterate the file above to create a list in an… continue reading.

Zend Framework 0.1.4

Just in case anyone missed it, Zend Framework 0.1.4 is now out! This is an important release as it has Zend_Config in it, along with a host of other stuff :)

Overworked

I've been really really busy at work recently. With end of month coming up, we've been looking to complete jobs that can be invoiced this month, reduce work on jobs that won't be invoiced this month and add in a few "quick" jobs that can be invoiced this month. Can you tell that worrying about cashflow is part and parcel of being in a small company?! One result of all this is that I haven't… continue reading.

PHP Editors

Everyone has their favourite coding editor and as this topic has just come up on the Zend mailing list and comes up regularly on the Sitepoint forums, I thought I'd list the editors I use. For my main heavy lifting, I use Zend Studio. In my opinion, nothing can touch it's autocomplete functionality. I especially like the way that it uses phpdoc's @return construct for autocomplete on class objects that are returned from functions. Obviously,… continue reading.

Zend_Config: Array Reader

When casting around for another file format for Zend Config, I came up with XML or YAML. Obviously I posted to the mailing list for thoughts and Paul Jones suggested the completely obvious: PHP arrays! Another one, perhaps so obvious it is invisible, is a PHP array. Simple, straightforward, fast, no parser needed, open to programmatic manipulation. If it has not already been implemented, it would be trivial to do so. And he's right. One… continue reading.

Zend Framework: Incubator Testing

In case you missed it, the Zend Framework Subversion revision 532 is important as Darby has put in place the test harness fiiles required for testing the incubator code. Thanks Darby! For the tests to pass you must have the following on your include path: /path/to/PEAR /path/to/zend_framework/library /path/to/zend_framework/incubator /path/to/zend_framework/tests You can then run the tests from the incubator/tests directory using php -f AllTests.php. If you don't want to change your php.ini file, then php -d… continue reading.

Default Dirs

There's an interesting thread on the ZF mailing list called Default Dirs which deals with where to put your code. It's well worth a read. I've touched on this before, but thought I'd update my half a dozen readers on my current thinking :) The manual suggests: /application /models /views /controllers /document_root /images /styles .htaccess index.php /library /Zend My current directory stucture currently looks like: /application /models /views /controllers /schemas /tests config.ini /scripts /www /img… continue reading.