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

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10799 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
tDidierjean
2011-11-30 11:06:38 +00:00
parent 12261242e3
commit f9c4410e8d
70 changed files with 328 additions and 327 deletions
@@ -123,10 +123,10 @@ class AdminLocalizationControllerCore extends AdminController
parent::postProcess();
}
public function initForm()
public function renderForm()
{
$localizations_pack = false;
$this->tpl_option_vars['options_content'] = $this->initOptions();
$this->tpl_option_vars['options_content'] = $this->renderOptions();
$xml_localization = Tools::simplexml_load_file('http://api.prestashop.com/rss/localization.xml');
if (!$xml_localization)
@@ -216,19 +216,19 @@ class AdminLocalizationControllerCore extends AdminController
);
$this->show_toolbar = false;
return parent::initForm();
return parent::renderForm();
}
public function initContent()
{
// toolbar (save, cancel, new, ..)
$this->initToolbar();
$this->content .= $this->initOptions();
$this->content .= $this->renderOptions();
if (!$this->loadObject(true))
return;
$this->content .= $this->initForm();
$this->content .= $this->renderForm();
$this->context->smarty->assign(array(
'content' => $this->content,