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.).
没有评论:
发表评论