Created
October 17, 2011 19:13
-
-
Save timbroder/1293491 to your computer and use it in GitHub Desktop.
Creating a Stateless Request in Magento 2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Ai_AjaxCatalog_Controller_Action extends Mage_Core_Controller_Front_Action | |
{ | |
public function preDispatch() | |
{ | |
$this->setFlag('', self::FLAG_NO_START_SESSION, 1); // Do not start standard session | |
parent::preDispatch(); | |
return $this; | |
} | |
} | |
test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment