// optimisation of form and customisation of action parameter

This commit is contained in:
dSevere
2011-10-20 14:22:42 +00:00
parent 17ea105b19
commit 3262637329
2 changed files with 20 additions and 6 deletions
+10
View File
@@ -43,6 +43,12 @@ class HelperFormCore extends Helper
public $table;
/**
* Used to override default 'submitAdd' parameter in form action attribute
* @var string
*/
public $submit_action = '';
public $token;
public $languages = null;
@@ -60,7 +66,11 @@ class HelperFormCore extends Helper
public function displayForm()
{
if ($this->submit_action == '')
$this->submit_action = 'submitAdd'.$this->table;
$this->context->smarty->assign(array(
'submit_action' => $this->submit_action,
'firstCall' => $this->first_call,
'current' => $this->currentIndex,
'token' => $this->token,