2009年6月4日星期四

Re: [fw-mvc] Pattern / example?

>> if you could pass a model to Zend_Form and have it automatically
>> build the form based on database field meta data with the option to
>> override this with definitions within the form itself.
>
> Thank you for your comment. I didn't think of it as that *automatically*.
> But off the top my head, I usually get a model from bootstrap's
> pluginResource provided by Zend_Application.
> I will do it on if there is no config to the form but only tablename,
> a factory at the bootstrap will make a config of fields from model
> $info = $table->info();$info['metadata'];
> And if the config has a customized flag. no update fields.

That sounds really interesting - any chance of you posting an example
someplace to look at?

-Ed

没有评论: