// Add CartController

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9676 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rGaillard
2011-10-27 14:04:58 +00:00
parent 7692c1a16f
commit f61f2f0570
4 changed files with 427 additions and 347 deletions
+12 -10
View File
@@ -120,18 +120,20 @@ abstract class ControllerCore
// postProcess handles ajaxProcess
$this->postProcess();
if ($this->display_header)
{
$this->setMedia();
$this->initHeader();
}
$this->setMedia();
$this->initHeader();
$this->initContent();
if ($this->display_footer)
$this->initFooter();
$this->initFooter();
if ($this->ajax && method_exists($this, 'displayAjax'))
$this->displayAjax();
if ($this->ajax)
{
$action = Tools::getValue('action');
if (!empty($action) && method_exists($this, 'displayAjax'.Tools::toCamelCase($action)))
$this->{'displayAjax'.$action}();
elseif (method_exists($this, 'displayAjax'))
$this->displayAjax();
}
else
$this->display();
}