RE: [PEAR] QF Controller alternative renderer use

From: Date: Mon, 22 Sep 2003 15:53:32 +0000
Subject: RE: [PEAR] QF Controller alternative renderer use
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-7979@lists.php.net to get a copy of this message
> -----Original Message----- > From: Alexey Borzov [mailto:borz_off@cs.msu.su] > > Mike Carter wrote: > > Okay that seems fine, not as complicated as I expected. > > Now that the rendering is all great and working I've found > a problem > > with the next/previous navigation. > > > > Page 1 displays fine, click next, page 2 displays fine, click > > previous, nothing is displayed. The 'ActionDisplay' doesn't even > > appear to get called as my var_dump($page) within the > _renderForm() is > > not outputting anything. > > > > What could cause this loss of page 1? > > > Maybe there are some errors thrown? Try adding > PEAR::setErrorHandling(PEAR_ERROR_DIE); > on top of script. Good plan. The result was:- HTML_QuickForm_Controller: Unhandled action "previous" in page "step1" It was due to me using $this->getButtonName('previous') rather than $this->getButtonName('back') :) It wasn't clear I had to stick to that button name when I just looked at the regWizard.php example. I now see that its one of the built in Actions of the controller package :o) Regards, - Mike ________________________________________________________________________ This email has been scanned for all viruses by the MessageLabs Email Security System. For more information on a proactive email security service working around the clock, around the globe, visit http://www.messagelabs.com ________________________________________________________________________

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