Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Magento Extension @ PHPConf Taiwan 2013

October 05, 2013

Magento Extension @ PHPConf Taiwan 2013

Give a hello world example to explain how to develop extensions in Magento


October 05, 2013

More Decks by kiang

Other Decks in Technology


  1. Who is kiang? • Google “Finjon Kiang” → About 85,100

    results (0.27 seconds) @ 00:42 today • Taiwan PHP User Group → http://twpug.net • Just This Computer Studio → http://olc.tw • Just Play → http://travel.olc.tw
  2. Why English? Because my English is poor. I need more

    practices, Sorry for those who hate English.
  3. Why Magento? • 169,571 live websites using Magento today →

    http://trends.builtwith.com/shop/Magento • Magento ran on 11% of the top 10K sites → http://trends.builtwith.com/shop • Some customers said “Hey, we want to use Magento” ...This is a real life
  4. <?php echo 'hello world'; app/etc/modules/Olctw_Phpconf.xml <?xml version="1.0"?> <config> <modules> <Olctw_Phpconf>

    <active>true</active> <codePool>community</codePool> </Olctw_Phpconf> </modules> </config>
  5. <?php echo 'hello world'; etc/config.xml <?xml version="1.0" encoding="UTF-8"?> <config> <frontend>

    <routers> <phpconf> <use>standard</use> <args> <module>Olctw_Phpconf</module> <frontName>phpconf</frontName> </args> </phpconf> </routers> </frontend> </config>
  6. <?php echo 'hello world'; etc/config.xml <config> <frontend> <layout> <updates> <Olctw_Phpconf>

    <file>olctw_phpconf.xml</file> </Olctw_Phpconf> </updates> </layout> </frontend> </config>
  7. <?php echo 'hello world'; olctw_phpconf.xml <?xml version="1.0"?> <layout version="0.1.0"> <phpconf_index_index>

    <reference name="content"> <block type="Olctw_Phpconf/hello"></block> </reference> </phpconf_index_index> </layout>