Last active
January 1, 2016 06:39
-
-
Save xcommerce-gists/8106123 to your computer and use it in GitHub Desktop.
Magento simple Hello World extension: Index action controller
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
/** | |
* Magento simple Hello World extension: Index action controller | |
* | |
* Action controller that loads and renders the layout | |
* provided for documentation purposes in the | |
* Magento 1.x Extension Developer's Guide | |
* | |
* @copyright Copyright (c) 2013 eBay Inc. (http://www.magentocommerce.com) | |
*/ | |
<?php | |
class Tutorials_HelloWorld_IndexController extends Mage_Core_Controller_Front_Action | |
{ | |
public function indexAction() | |
{ | |
$this->loadLayout(); | |
$this->renderLayout(); | |
} | |
public function helloWorldAction() | |
// Loads and renders the layout, helloworld.phtml | |
{ | |
$this->loadLayout(); | |
$this->renderLayout(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment