More information about the Underscore mailing list

[_] php frameworks - any that generate mysql schema, class and edit/view templates?

Jon Bennett jmbennett at gmail.com
Wed Jun 13 18:54:38 BST 2007

> For Plone/ Zope2 development there is a system called Archetypes - you
> provide a schema for a content type and it generates the database "table"
> (actually an object rather than a table in zope), a class with all the
> setters and getters and an edit form and basic view template.
>
> A basic example would be that you could create a simple schema for something
> like a blog post:-
>
> (over-simplified schema in no particular language)
>
> BlogPost {
> PostId (Int, Auto, Required),
> Date (DateField, Auto, Required, DateWidget),
> Title (TextField,Required,TextInputWidget),
> Body (TextField, Required, TextAreaWidget),
> }
>
> run it through an install procedure and you are ready to start using it as a
> content type in a CMS, with the edit form and processing script created for
> you, as well as a basic view template. I understand you can do something
> similar with Ruby on Rails.
>
> I've been looking through the various frameworks for PHP and I haven't
> actually found one that promises this - any suggestions anyone?

With CakePHP you can do something similar, which has the same outcome
but requires a different start point.

First, create your table(s) in your DB, then launch the Terminal and
use the Bake script to created your model(s), view(s) and
controller(s)

Can't comment on the others, as I only use CakePHP, though I've been
happy with Cake for over a year now, can't recommend it enough.

Thanks,

Jon

-- 


jon bennett
t: +44 (0) 1225 341 039 w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett