Re: QuickForm_Controller

From: Date: Mon, 08 Sep 2003 18:10:57 +0000
Subject: Re: QuickForm_Controller
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-7650@lists.php.net to get a copy of this message
> >> Is there a way to get the values for every page ? > >> > >> I was thinking about something like > >> > >> $values= array > >> 'page1' (or whatever you named it) => array('field' => > >> 'value'), > >> 'page2' (or whatever you named it) => array('field' => > >> 'value') > >> ); > > > > You can use the container() method: > > > > http://pear.php.net/manual/en/package.html.html-quickform-controller.html-quic > > kform-controller.container.php > > Maybe we could add exportValue($page, $elementName) in complement to > exportValues(). This would make it lighter to access the previously > submitted values, instead of : > > $data =& $this->controller->container(); > $myValue = $data['values'][$page][$elementName]; > > What do you think about that ? Yes, it would be helpful imho. It would certainly make my code a tad bit lighter ;) Arnaud.

« previous php.pear.general (#7650) next »