Re: HTML_QuickForm_Controller, dynamic fields and templates

From: Date: Mon, 12 Sep 2005 22:54:50 +0000
Subject: Re: HTML_QuickForm_Controller, dynamic fields and templates
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-20928@lists.php.net to get a copy of this message
On Mon, 2005-09-12 at 17:01, Alexey Borzov wrote: > Hi, Hi Alexey, thanks for the reply. > You actually won't be able to alter the output without creating a subclass of > Action_Display, since it is the only place where form output is done within QFC. Yes, I came to this conclusion. > Examples are installed alongside the package, in particular regWizard.php and > upload.php will be of interest. The latter uses ITDynamic renderer. I have this working now. I used the existing logic to set the following in each page; $data =& $this->controller->container(); $data['_template'] = 'page1.tpl'; // Or page2.tpl, etc. then in the ActionDisplay class used; // Retrieve the template name $data =& $page->controller->container(); $template_file = $data['_template']; $tpl =& new HTML_Template_ITX('./templates'); $tpl->loadTemplateFile( $template_file ); to achieve the desired result. Seems to work OK, I'm happy with it. Cheers, Brad -- This message was scanned for spam and viruses by BitDefender. For more information please visit http://linux.bitdefender.com/

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