HTML_QuickForm_Controller-ActionDisplay-Different Behaviors
| From: | Ed Greenberg | Date: | Mon, 11 Apr 2005 00:37:33 +0000 |
| Subject: | HTML_QuickForm_Controller-ActionDisplay-Different Behaviors | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-18674@lists.php.net to get a copy of this message | ||
Using HTML_QuickForm_Controller.
I'm starting to accumulate a bunch of if statements for special handling on each of the various forms that run through ActionDisplay.
I'd like to have a different ActionDisplay for each form. Unfortunately, there seems to be only one place to register ActionDisplay.
Perhaps ActionDisplay could look at what form it's using and call an appropriate behavior from the appropriate form class.
Is there a simpler (or preferred) way to accomplish this?
Thanks,
</edg>