Re: potentially serious issue with QFC Jump action - hopefully I'm wrong
| From: | Greg Beaver | Date: | Mon, 17 Nov 2003 06:51:00 +0000 |
| Subject: | Re: potentially serious issue with QFC Jump action - hopefully I'm wrong | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-8982@lists.php.net to get a copy of this message | ||
Hi,
Any ideas on how to do the html display? It seems odd to do this in the buildForm() method, but I can't think of any other option.
One thought that comes to mind is the possibility of adding a new public method to Quickform_Controller called preprocess() (or something) which would be called at the top of the page, and do any redirection that is needed. This would allow the display to happen at the run() point, without fear of headers being borked. If you like it, I'll open a feature request.
Obviously, run() would need no modification and most users could ignore the new method, but the addition would be a very useful option for power users.
Greg
Alexey Borzov wrote:
Hi! Greg Beaver wrote:I've been getting a blank page when I do a Next button, and although I still haven't tracked down the exact problem, I think the fact that I have some output prior to the $controller->run() code is a significant factor. All I've done is output the standard html and head tags, but this is enough to render the header() call in QuickForm_Controller_Action_Jump unable to work.That's PHP's standard behaviour, no? Of course, a mention in documentation about this can be helpful...The exit on the next line is clearly working, however :). I wonder if it might be a better thing to jump in another manner? Am I completely missing the point of the default Next action? In the mean time, I'm going to try writing a custom next action that instead calls the display handler for the next page and see if that works out better.I suspect it wouldn't work out better. After you write this, try hitting "reload", "back" and "forward" in browser with you new wizard.