Search Results

Packageizer and ZF modelform now on GitHub

Thursday, April 15th, 2010

Due to popular demand, I have now pushed both packageizer and ZF modelform to GitHub. Feel free to fork them or do whatever :)

Another idea for using models with forms

Wednesday, January 7th, 2009

Matthew Weier O'Phinney wrote about using Zend_Form with models. His approach puts a form inside a model, which then uses the form to validate itself. While this idea is not bad, I find it being upside down - I think the form should use the model to validate itself, not the ...

The problems faced by a common model interface in frameworks

Wednesday, December 17th, 2008

You sometimes see people asking why the Zend Framework (or some others) don't provide a library for the Model part in MVC. While ZF provides data access classes in the form of Zend_Db and related components, it doesn't provide any concrete examples of how you would implement a model class. ...

ModelForm developments

Monday, October 20th, 2008

I've been reworking the ModelForm class for ZF a bit. Earlier this year, I discussed porting it to use Zend_Db_Table with Matthew Weier O'Phinney, for using it with Zend Framework. I initially had done some checking on Zend_Db_Table, and some small code changes to modify the class to use it ...

Zend_Form’s from Doctrine models: Part 2

Wednesday, June 4th, 2008

Previously I wrote about my class for generating Zend_Form forms from Doctrine models. This time, let's look at some more usage examples and how it works internally, to make it easier for you to utilize it. Edit 10.10.2008: Updated the post to reflect some minor changes in the CU_ModelForm class

Autogenerating forms from Doctrine models

Monday, June 2nd, 2008

In a previous post I mentioned how Django's model forms are awesome. I really like the idea of being able to generate forms automatically from models - I mean the models already should contain most of the data you'd need: the fields, field types and how they will be stored. Since ...

Django = Awesome

Friday, May 16th, 2008

So in the lack of anything "useful" to post, and in the attemps to at least post something interesting, I shall dedicate this post to talking about what makes Django such an awesome framework! I'm going to compare it to Zend Framework, as it's the framework I'm most familiar with.