// Add CartController

This commit is contained in:
rGaillard
2011-10-27 14:04:58 +00:00
parent 901d7a89a1
commit b19ddb50ab
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();
}