tags:

views:

13

answers:

0

Hi, I have made a element in controller file . i have a if condition in tpl file. based on this i need to show the element created in controller file. But i am unable to do it.

How do i destroy the element created in controller in tpl file ?

added element in controller like this

$form1 = new HTML_QuickForm('form123', 'post', "unlock.php?action=unlock&gotObject={$gotElement}", '', array('class'=>'PSDDForm'));

$form1->addElement('textarea', '_rfc', 'Reason for change', array('class'=>'PSDDTextarea', 'cols'=>'40', 'rows'=>'3'));