Jurriën - 

-- Jurriën Stutterheim <[EMAIL PROTECTED]> wrote
(on Friday, 28 September 2007, 03:28 PM +0200):
> My Form proposal is a bit out of date (I need to find some time and  
> patience to update it ;), but the general idea I'm describing is  
> still valid.

I've been reading through all three current Zend_Form proposals. :-)

> To get a better picture of how I invisioned Zend_Form you could check  
> out my implementation from it's SVN:
> 
> http://tools.assembla.com/svn/zfcomponents/
> 
> In that implementation are two things not described in the proposal  
> yet: Builder classes and Plugins.
> 
> The builder plugins allow for form instancing from e.g. a Db_Table  
> object.

I'm approaching this slightly differently in my current iteration, and
instead having it in config files. With a config file implementation, it
would be trivial to also add on db support.

> The plugins can be used to customize the controller flow defined in  
> the FormHandler action helper.

I didn't see the class skeleton in the proposal before, but just now
looked at the action helper in your SVN repo. I see the hooks:

  * preHandling()
  * preProcess()
  * postProcess()
  * preAssign()
  * postAssign()
  * postHandling()

Can you give some use cases as to what you might do in each hook? I'm
not entirely sure how useful these would be, or what actions I might
want to perform.

Otherwise, your action helper is basically what I've been envisioning.
:-)

> For a demonstration on how it would work there is a sampleapp in the  
> Examples dir.
> 
> Also, I post form related stuff on my blog: www.norm2782.com
> 
> Hopefully my work on the form component will be a source of inspiration.

It has, as have the other proposals and frameworks I've been reviewing.

> Maybe we could discuss forms on #zftalk some time.

Ssshh... don't let others know I sometimes hang out in there... ;-)


> On 27 Sep 2007, at 15:20, Matthew Weier O'Phinney wrote:
> 
> >-- Daniel Rossi <[EMAIL PROTECTED]> wrote
> >(on Thursday, 27 September 2007, 10:59 AM +1000):
> >>Hi was wondering if there is any such forms generation functionality
> >>as yet when using the model classes ? I believe it would be a good
> >>thing to have although the form element generation currently is set
> >>in helpers ?
> >
> >I have been assigned as the Zend lead for a Zend_Form component,  
> >and am
> >currently reviewing the existing proposals as well as solutions in  
> >other
> >frameworks and languages.
> >
> >The current consensus is that the form component will collect form
> >elements, which will each have their own validations, filters, and
> >renderers (i.e., you will be able to specify the view helper used to
> >render a form element).
> >
> >However, the form component will initially be de-coupled from  
> >models as
> >we don't have any generalized solution for models yet (specific models
> >exist already, of course, in such components as Zend_Service, Zend_Db,
> >Zend_XmlRpc_Client, etc). In internal discussions, we've talked about
> >the possibility of adding form generation from models, and any  
> >solution
> >we adopt for a form component will be flexible enough to make this
> >possible.
> >
> >-- 
> >Matthew Weier O'Phinney
> >PHP Developer            | [EMAIL PROTECTED]
> >Zend - The PHP Company   | http://www.zend.com/
> >
> 

-- 
Matthew Weier O'Phinney
PHP Developer            | [EMAIL PROTECTED]
Zend - The PHP Company   | http://www.zend.com/

Reply via email to