Last active
March 24, 2016 21:55
-
-
Save adobi/eb2ce0d172914f0bc95f to your computer and use it in GitHub Desktop.
Magenot custom router IndexController.php
This file contains 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
class Modeul_Name_IndexController extends Mage_Core_Controller_Front_Action | |
{ | |
private $params = []; | |
public function __construct( | |
Zend_Controller_Request_Abstract $request, | |
Zend_Controller_Response_Abstract $response, | |
array $invokeArgs = array() | |
) { | |
parent::__construct($request, $response, $invokeArgs); | |
} | |
public function indexAction() | |
{ | |
$this->render(); | |
} | |
private function render() | |
{ | |
$this->loadLayout(); | |
$this->getLayout()->getBlock('module_index')->assign('data', $this->params); | |
$this->renderLayout(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment