// add method ajaxProcess in "run" method
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8827 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
877074f659
commit
58d205edc5
1 file changed
+7
-2
@@ -111,7 +111,12 @@ abstract class ControllerCore
|
|||||||
public function run()
|
public function run()
|
||||||
{
|
{
|
||||||
$this->init();
|
$this->init();
|
||||||
$this->postProcess();
|
|
||||||
|
if ($this->ajax && method_exists($this, 'ajaxProcess'))
|
||||||
|
$this->ajaxProcess();
|
||||||
|
else
|
||||||
|
$this->postProcess();
|
||||||
|
|
||||||
if ($this->displayHeader)
|
if ($this->displayHeader)
|
||||||
{
|
{
|
||||||
$this->setMedia();
|
$this->setMedia();
|
||||||
@@ -122,7 +127,7 @@ abstract class ControllerCore
|
|||||||
if ($this->displayFooter)
|
if ($this->displayFooter)
|
||||||
$this->initFooter();
|
$this->initFooter();
|
||||||
|
|
||||||
if ($this->ajax)
|
if ($this->ajax && method_exists($this, 'displayAjax'))
|
||||||
$this->displayAjax();
|
$this->displayAjax();
|
||||||
else
|
else
|
||||||
$this->display();
|
$this->display();
|
||||||
|
|||||||
Reference in new issue
Block a user