Re: [QuickForm_Controller] free the templates! qf_ct for president!

From: Date: Thu, 16 Oct 2003 16:48:37 +0000
Subject: Re: [QuickForm_Controller] free the templates! qf_ct for president!
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-8461@lists.php.net to get a copy of this message
You have a lot of options here: 1) Create custom Actions for each page and add them through Page::addAction 2) Create one custom Action with a property to map page names => template names (I'd go for this one) 3) Use global variables
Thanks Alexey. Think I found a good solution for my purpose, but wonder if its really smart to fiddle the current pagename out of $_GET (eg: _qf_page2_display -> page2). Is there a possibility to ask a QuickForm_Controller-object for the currently displayed page? Something like getCurrentPage($obj) would do. RTFM+URL and other comments warmly welcome :) --M

« previous php.pear.general (#8461) next »