2008年8月17日星期日

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

Yes. Maybe someone else will offer a better solution but this is how I would
try to handle it. Curious to know if that works for you.


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-tp19018020p19020310.html
Sent from the Zend MVC mailing list archive at Nabble.com.

没有评论: