Re: QFC : How to pass navigation parameters to each page?
| From: | Ignatius Reilly | Date: | Fri, 14 Nov 2003 11:26:30 +0000 |
| Subject: | Re: QFC : How to pass navigation parameters to each page? | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-8924@lists.php.net to get a copy of this message | ||
Many thanks Alexey.
Your suggestion worked very nicely
_________________________
"Alexey Borzov" <borz_off@cs.msu.su> wrote in message
news:3FB496BD.1030208@cs.msu.su...
> 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...