I started developing a simple module, everythings goes well, but now i stuck with the 'cancel' button in the admin part..
I create the cancel button this way:
Code: Select all
<?php
if (!isset($gCms)) exit;
if (isset($params['cancel']))
{
$this->Redirect($id, 'defaultadmin', $returnid);
}
$smarty->assign('cancel', $this->CreateInputSubmit($id, 'cancel', lang('cancel')));
$smarty->assign('submit', $this->CreateInputSubmit($id, 'submit', lang('submit')));
$smarty->assign('startform', $this->CreateFormStart ($id, 'orderview', $returnid));
$smarty->assign('enform',$this->CreateFormEnd());
echo $this->ProcessTemplate('vieworder.tpl');
?>
Code: Select all
{$startform}
<div class="pageoverflow">
<p class="pagetext"> </p>
<p class="pageinput">{$submit}{$cancel}</p>
</div>
{$endform}
What do i do wrong...
Kind regards,
Gjjansen