On Monday 08 June 2009 11:37:29 staar2 wrote:
> I thought to use modular design and make some simple modules
>
> guestbook
> admin area
> comment area
> feedback
> polls
> news
> content managment
>
> But all these requires almost same CRUD functionality, forms are different
> database tables and presentation code. But mostly the code keeps to be same
> in controller part. Currently i am thinking to write this code manually so
> i wanted to ask for ideas for different approach.

This is the place ZF could do with some improvement, scaffolding. Basically, 
you describe your model with some configuration convention and that should be 
enough for a BREAD/CRUDL cycle. I've seen some attempts to solve this, but 
most were pretty limited.

A great leap forward would be a Zend_Grid component needed for browsing (I'm 
writing one second time around, should really make a proposal) and providers 
for Zend_Tool which would configure Zend_Grid, Zend_Form, generate 
Zend_Db_Table_Abstract instances and such. As Zend_Form accepts Zend_Config 
(as should Zend_Grid), this could quite easily become reality. Maybe we could 
even use some existing GUI modeling tool's output for this.

-- 
Dado

Reply via email to