2008年8月17日星期日

RE: [fw-mvc] Setting a custom parameter for a form

To be clear, I'm not necessarily saying not to do anything in init. Of course
you could still set attribs such as the name of the form, etc in init.


Gordon Ross-8 wrote:
>
> (Sorry, being a bit dense here.)
>
> So you're saying that in my init() method, actually do nothing, then
> actually do the form generation in createRows() ?
>
> GTG
> ________________________________________
> From: Matthew Lurz [mlurz71@gmail.com]
> Sent: 17 August 2008 15:19
> To: fw-mvc@lists.zend.com
> Subject: RE: [fw-mvc] Setting a custom parameter for a form
>
> So, perhaps the 2nd potential solution is better. Just add a createRows
> (or
> whatever you want to name your method) public method to your form class.
> Then instantiate the form and call the createRows method. You wouldn't
> necessarily need a createRows method as you create the rows wherever, (in
> the form class, in a controller, etc.).
>
>

--
View this message in context: http://www.nabble.com/Setting-a-custom-parameter-for-a-form-tp19018020p19020352.html
Sent from the Zend MVC mailing list archive at Nabble.com.

没有评论: