[Quickform controller] Override the display ??

From: Date: Thu, 09 Dec 2004 13:09:12 +0000
Subject: [Quickform controller] Override the display ??
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-16142@lists.php.net to get a copy of this message
Hi, I need a custom display for my pear quickform controller form system, the documentation says it is possible and that I have to .. -- _renderForm [line 75] void _renderForm( object HTML_QuickForm_Page &$page) Actually outputs the form. If you want to customize the form's appearance (you most certainly will), then you should override this method. There is no need to override perform() * Access: public -- How do I override this ?? I really don't have a clue. I tried something like this, which doesn't work .. PHP Code: | | | //============================================================================// /** * The class extension for the displaying of the form */ class displayForm extends HTML_QuickForm_Action_Display { function _renderForm() {
       $tpl    =& $GLOBALS['tpl'];
       $formArray = array();
       $formArray = $this->toArray();
       $templateFile = MF_TEMPLATE_ROOT .'/concertagenda/add_concert.tmpl';
       $tpl->assign('showtype','form');
       $tpl->assign('formaction',$formArray['attributes']);
       $tpl->assign('requirednote',$formArray['requirednote']);
       $tpl->assign('elements',$formArray['elements']);
       return $tpl->fetch($templateFile);
} } | Any help or suggestion would be greatly appreciated, thanx Marc

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