Re: QFC handle
| From: | Alexey Borzov | Date: | Mon, 23 Feb 2004 20:14:38 +0000 |
| Subject: | Re: QFC handle | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-10876@lists.php.net to get a copy of this message | ||
Hi!
Daniel Kopp wrote:
Ah ... this means the controller does not at all have the handles for the page but just the default ones?This means the processing usually goes like this: 1) Page's handle() method is called. 2a) If an Action was added to a Page, its perform() method is called. 2b) Else Controller's handle() method is called. 3a) If an Action was added to a Controller, its perform() method is called. 3b) Controller tries to load a default Action and call its perform() method. It throws an error if this is not possible. So yes, Controller basically has default Actions. You can add a custom Action to it, too, and this will be called if a Page does not have a custom Action itself.