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

From: Date: Tue, 14 Oct 2003 14:18:51 +0000
Subject: Re: [QuickForm_Controller] free the templates! qf_ct for president!
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-8426@lists.php.net to get a copy of this message
Hi! Matthias H. Risse wrote:
i am trying to find a clean solution for telling a quickform_controller object to display each "subpage" using a specific template. currently i overwrite the _renderForm-method (as stated in the man) of the action_display-class with the following, but this of course just works when using always the same dynamic template, but not if i need different templates for each multipage. ... possibly my true problem is, that i need to store somewhere the name of the template to be used for each multipage and dont know where to do it. i am seeking for a clean solution, but somehow i am actually a little bit lost in space.
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

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