HTML_QuickForm_Controller, dynamic fields and templates

From: Date: Mon, 12 Sep 2005 01:16:56 +0000
Subject: HTML_QuickForm_Controller, dynamic fields and templates
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-20909@lists.php.net to get a copy of this message
Hi all, I have a HTML_QuickForm_Controller project in development that has a second page which displays different fields (and "headers" for want of a better description) dependant on the value of fields on the first page. This is no big deal (although to the developers might I mention that it's fabulous :-) and works fine. Now I wish to apply templates to the form to achieve the "look" I'm after. I've settled on using HTML_Template_IT for no particular reason. I envisage the simplest way to do this would be to assign a different template page dependant on the logic that determines what fields are to be shown on the second page. Questions: What is the best way to assign the template page to be used at runtime? Do I need to define my own ActionDisplay class or can I accomplish the template rendering from within the second page class? Any examples would be much appreciated. Many thanks, Brad -- This message was scanned for spam and viruses by BitDefender. For more information please visit http://linux.bitdefender.com/

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