Skip to content

Instantly share code, notes, and snippets.

@xcommerce-gists
Last active January 1, 2016 01:59
Show Gist options
  • Save xcommerce-gists/8076132 to your computer and use it in GitHub Desktop.
Save xcommerce-gists/8076132 to your computer and use it in GitHub Desktop.
Magento simple Hello World extension: Extension configuration file
/**
* Magento simple Hello World extension: Extension configuration file
*
* Every Magento extension must have a config.xml that specifies
* necessary configuration information.
* Provided for documentation purposes in the
* Magento 1.x Extension Developer's Guide
*
* @copyright Copyright (c) 2014 eBay Inc. (http://www.magentocommerce.com)
*/
<config>
<modules> <!-- Defines the extension class structure and version -->
<Tutorials_Hello>
<version>0.1</version>
</Tutorials_Hello>
</modules>
<frontend>
<routers>
<hello>
<use>standard</use> <!-- Extension uses the Magento standard router -->
<args>
<module>Tutorials_Hello</module> <!-- Notice this matches the value under <modules> -->
<frontName>hello</frontName> <!-- Storefront URI used to display text -->
</args>
</hello>
</routers>
<layout>
<updates>
<hello>
<file>hello.xml</file> <!-- Extension's TBD -->
</hello>
</updates>
</layout>
</frontend>
<global>
<blocks>
<hello>
<class>Tutorials_Hello_Block</class> <!-- Extension's block -->
</hello>
</blocks>
</global>
</config>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment