RE: [PEAR] QFC handle
| From: | Daniel Kopp | Date: | Mon, 23 Feb 2004 09:08:18 +0000 |
| Subject: | RE: [PEAR] QFC handle | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-10866@lists.php.net to get a copy of this message | ||
Hi!
Ah ... this means the controller does not at all have the handles for the
page but just the default ones?
regards
Daniel
> Daniel Kopp wrote:
> > How come:
> >
> > $page=&$controller->getPage('pagename');
> > $page->handle('display');
> >
> > and
> >
> > $controller->handle($page,'display');
> >
> > has different results?
> >
> > The first uses my non-default display Action the second uses the
> > default ...
>
> This is the expected behaviour. You don't generally need to call
> $controller->handle(), $page->handle() calls it automatically
> if a non-default
> Action was not added to the Page.