// Rename AdminController methods initForm() initList() etc. to renderForm() renderList()

This commit is contained in:
tDidierjean
2011-11-30 11:06:38 +00:00
parent ef2c7480ec
commit aefa581603
70 changed files with 328 additions and 327 deletions
@@ -61,7 +61,7 @@ class AdminSuppliersControllerCore extends AdminController
$this->addJqueryPlugin('tagify');
}
public function initForm()
public function renderForm()
{
$this->fields_form = array(
'legend' => array(
@@ -158,10 +158,10 @@ class AdminSuppliersControllerCore extends AdminController
'size' => $image ? filesize(_PS_SUPP_IMG_DIR_.'/'.$this->object->id.'.jpg') / 1000 : false
);
return parent::initForm();
return parent::renderForm();
}
public function initView()
public function renderView()
{
$products = $this->object->getProductsLite($this->context->language->id);
$total_product = count($products);
@@ -203,7 +203,7 @@ class AdminSuppliersControllerCore extends AdminController
'stock_management' => Configuration::get('PS_STOCK_MANAGEMENT'),
);
return parent::initView();
return parent::renderView();
}
public function afterImageUpload()