PrestaShop/PrestaShop — pull request #2029 by ccauw (2014-08-01 18:08:18+00:00)
Title: [+] BO : Override of list, form or view fields

This is a method to allow to add fields in admin controllers.

in adminController.php, i add new functions to override in AdminController--- :

getTemplateListVars()
getTemplateViewVars()
getTemplateFormVars()

Now i can easily add some new fields.

Sample:
In Override/.../adminControllerCustomer, i override these functions:

public function getTemplateViewVars()
{
$myVars = array(..........);
return array_merge($myVars, $this->tpl_view_vars);
}