Re: [Quickform controller] Override the display ??

From: Date: Thu, 09 Dec 2004 14:26:41 +0000
Subject: Re: [Quickform controller] Override the display ??
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-16143@lists.php.net to get a copy of this message
Hi, Marc van Duivenvoorde wrote:
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()
function _renderForm(&$page)
{
       $tpl    =& $GLOBALS['tpl'];
       $formArray = array();
       $formArray = $this->toArray();
$formArray = $page->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
It's always a good idea to review the examples provided with the package.

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