Hi all,
I have a controller which sets up (amends) a form, which is a subclass of
Zend_Form: mainly the controller sets some values and it removes or adds
some elements, depending on whether or not the user is logged in. This is
the code that sets up the form:
$form = new
I would recommend storing it in the registry, unless you have reasons
to tether it to the controller.
As for editing the form I would recommend creating methods in the form
class that do all of that. For example:
if (!is_null($this-loggedInUser)) {
Mark Wright-3 wrote:
I would recommend storing it in the registry, unless you have reasons
to tether it to the controller.
Well, that was my initial idea as well, but I can't seem to get the registry
to remember the form instance. When I set it in the initial controller and I
do a
On Mon, Jan 19, 2009 at 11:30 AM, GJ Bogaerts g...@zigg.nl wrote:
Mark Wright-3 wrote:
I would recommend storing it in the registry, unless you have reasons
to tether it to the controller.
Well, that was my initial idea as well, but I can't seem to get the registry
to remember the form