// Norm on controllers

This commit is contained in:
rMalie
2011-09-30 13:50:55 +00:00
parent 8d19f130d7
commit f65df2f2ae
38 changed files with 252 additions and 272 deletions

View File

@@ -89,8 +89,8 @@ class FrontControllerCore extends Controller
if ($this->ajax)
{
$this->displayHeader(false);
$this->displayFooter(false);
$this->display_header = false;
$this->display_footer = false;
}
ob_start();
@@ -375,13 +375,13 @@ class FrontControllerCore extends Controller
Tools::safePostVars();
$this->context->smarty->assign('errors', $this->errors);
if ($this->displayHeader)
if ($this->display_header)
$this->context->smarty->display(_PS_THEME_DIR_.'header.tpl');
if ($this->template)
$this->context->smarty->display($this->template);
if ($this->displayFooter)
if ($this->display_footer)
$this->context->smarty->display(_PS_THEME_DIR_.'footer.tpl');
// live edit