Zend Framework First Thoughts

by Mike Willbanks on March 7th, 2006

Now that I have had a bit of time to look through the Zend Framwork it looks like it has some serious potential.  There are things I really like about it and other things that I do not like so much about it.  But this is also without some of the documentation done that I would really like to see because I haven’t even started stepping through the code.  However I did have some issues with trying to include it without it being in an include path unless it was at the same document root as the main index.php file I was utilizing.
Quite possibly my favorite feature is the MVC implementation.  The most intriging part of it, is that it utilizes a class to call your pages which are stored in functions.  I guess I never really thought of that approach.  Mine has always been one of the switch statement.  I think I actually prefer the class utilizing the methods much more than the switch statement.
Now on to my biggest irritation the Input Filter.  Basically you assign your get and posts to the filter and it removes them from the scope so they can not be used.  Looking at it from the api documentation, most of the validation routines and such could be accomplished with one line of php and only very simple routines are included.  I suppose what might work well is to extend the classes to add in custom validation items.
The main problem with the framework is that it is so highly undocumented that it is hard to truly evaluate it and build applications with it at this moment.  Which is pretty much known and is to be expected.  I think I will probably play with this and the new features of MySQL 5 and build some site within the next few weeks and see how it goes.  Expect me to post some more information and quite possibly a few tutorials on what I find that is of major usage with this new framework.

From PHP

1 Comment
  1. I had some of the same frustrations in regards to the Input Filter. I guess it is because I was used to having them available in the scope of the calling page – and this is a new twist. I liked the database aspect – but ran into some issues with our MySQL tables, which are normalized and require several joins (Still on MySQL 4), and lack of support for making the connection to DB2. I currently utilize PDO in all of our queries, so it was more of a learning curve than anything.

    And I agree – the concept of your pages being stored in the functions versus switch statements is much nicer, and much CLEANER. The MVC approach tops this off to make it more secure in the placement of all of your files, etc.

    I think once it becomes used a little more, and we see more documentation and a larger support community, it will be a very successful framework. Personally, I liked it much better than Symfony and Cake.


Leave a Reply

Note: XHTML is allowed. Your email address will never be published.

Subscribe to this comment feed via RSS