first_page

Random Screenshot: Zend Framework Version of SonghaySystem.com Almost Done!

So I'm not too impressed with the PHP editor in Eclipse Europa. Let's get that out of the way first. I have been trying to turn of it's automatic "caret" positioning for days because it is so annoying and in serious need of studying how Microsoft bought and paid for the right (person) way to do it in Visual Studio! This is so horrible that I am actually considering trying the PHP Plugin for Netbeans 6.0!

Two things people somewhere out there who care may notice: (i) The _legacy folder contains the old SonghaySystem.com site. I poach old code from there and insinuate it into the Zend framework and (ii) my Zend configuration file is in XML format---this is extremely useful for pre-bootstrapping (a design pattern I hinted at earlier).

Among the Model-View-Controller solutions provided by the Zend Framework, the Model part is most lacking. As of right about now, you can only use something like Zend_Db for one table (no joins). My solution---which might be horrible to others---is to stick a bunch of PDO statement getter classes in the model. That's it. Then a class I wrote called Songhay_PdoXml generically turns any PDO resultset into XML (not JSON---sorry hip dudes).

Assuming that I actually live a little longer, I look forward to getting my data layer out of PHP entirely. Some solutions include:

  • Using Mono as a primal REST service.
  • Building a Windows-based Amazon-like elastic cloud server to handle all of my secure data getting needs.
  • Being surprised about whatever the hell Zend comes out with next that addresses the Model.

Comments

Matthew Weier O'Phinney, 2008-03-15 12:38:08

You may be interested to know that Zend_Db_Table has had support for table relations since 1.0.0, and 1.5.0 will allow you to return resultsets in Zend_Db_Table that contain joins (and allows you to use Zend_Db_Select to build the SQL for such joins). You can check out this latest functionality in the current 1.5.0RC3 release, for which the documentation is already online.

Additionally, there are a rich set of service consumables that can be used for your Model.

rasx(), 2008-03-19 00:28:02

Can you recommend a tutorial on this?

rasx()