RE: [PEAR] QFC: Jump.php and header()
| From: | Mike Carter | Date: | Fri, 05 Mar 2004 08:37:48 +0000 |
| Subject: | RE: [PEAR] QFC: Jump.php and header() | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-11097@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Paul Smith [mailto:paul@foundryzero.com]
>
> I'm trying to figure out how to use
> QuickForm_Controller, and I'm
> trying to do a Wizard-like multi-page form. I'm using QFC within a
> larger context... by the time I'm ready to start building my
> HTML_QuickForm_Controller and _Action instances, I've already sent
> headers. However, this thing seems to need to header('Location: ',
> 'someurl') in Jump.php to move from one page to the next. I keep
> getting the 'Cannot modify header information - headers already sent'
> error. I'm confused as to why it needs to do this... it's using
> sessions anyway, right?
> Does QFC /always/ need to be able to send header('Location: ',
> 'someurl'), or am I just not doing something right?
The decision is made when you call the QF Controllers ->run() method.
So call this before any output is sent to the browser.
Just after the run() call I then output my page header.
Regards,
Mike C.
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________