Re: QFC : How to pass navigation parameters to each page?

From: Date: Fri, 14 Nov 2003 08:47:57 +0000
Subject: Re: QFC : How to pass navigation parameters to each page?
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-8902@lists.php.net to get a copy of this message
Hi! Ignatius Reilly wrote:
I am trying to build a multi-page form. My specific constraint is that each page action must pass the two navigational parameters so that the correct script is called. No problem when action is "display" or "submit". However, when (defaulted) action is "jump", the page is called by a GET request, which passes only the action button. So I can not pass the navigational parameters. My question: - what is the easiest way to handle this issue? before I embark into uncharted waters, like: - extending the HTML_QuickForm_Action_Jump class so that it passes the navigational parameters in cURL/ POST mode? - customizing the HTML_QuickForm_Action_Jump class ? Any idea will be welcome.
I'd suggest creating a custom class based on HQA_Jump code, which will pass the additional parameters as well. Then just do $controller->addAction('jump', new CustomJump()); Alternatively, you could pass the navigational parameters in container(), but I presume that you need these parameters before the Controller kicks in...

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