title: Magento 1.9 create new Hello World module
body: <h3>
   Hello, guys!
  </h3>
  
  <p>I really hope someone will help me with this.<br>
  I trying to make new module in magento 1.9.3.2, which show "Hello world!" from phtml file. I  created that step by step by this rules. Module is created, but when I open module (127.0.0.1/magento/helloworld) in browser, nothing appear, just empty this template.
  <a href="https://i.stack.imgur.com/vuIZk.jpg" rel="nofollow noreferrer">opened module in browser - screenshot</a></p>
  
  <p><strong>Here is steps by what i guided:</strong><br>
  1. Module declaration:
       Create new xml file in  app/etc/modules/M4U_HelloWorld.xml <br>
      <code>&lt;?xml version="1.0"?&gt;
                   &lt;config&gt;
                         &lt;modules&gt;
                            &lt;M4U_HelloWorld&gt;
                                 &lt;active&gt;true&lt;/active&gt;
                                 &lt;codePool&gt;local&lt;/codePool&gt;
                            &lt;/M4U_HelloWorld&gt;
                         &lt;/modules&gt;
                   &lt;/config&gt;</code></p>
  
  <ol start="2">
  <li><p>Module configuration<br>
      2.1. Create controller class in app/code/local/M4U/HelloWorld/controllers/IndexController.php</p>
  
  <p><code>class M4U_HelloWorld_IndexController extends  Mage_Core_Controller_Front_Action
                      {
                        public function indexAction()
                        {
                           $this-&gt;loadLayout(array('default'));
                           $this-&gt;renderLayout();
                        }
                      }</code></p></li>
  </ol>
  
  <p>2.2. Create Block class in app/code/local/M4U/HelloWorld/Block/HelloWorld.php</p>
  
  <pre><code>class M4U_HelloWorld_Block_HelloWorld extends Mage_Core_Block_Template
                    {
                         // necessary methods
                    }
  </code></pre>
  
  <p>2.3. Create configuration xml in app/code/local/M4U/HelloWorld/etc/config.xml</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;config&gt;
  &lt;global&gt;
      &lt;modules&gt;
              &lt;m4u_helloworld&gt;
                      &lt;version&gt;0.1.0&lt;/version&gt;
              &lt;/m4u_helloworld&gt;
      &lt;/modules&gt;
  &lt;blocks&gt;
          &lt;helloworld&gt;
              &lt;rewrite&gt;
       &lt;helloworld&gt;M4U_HelloWorld_Block_HelloWorld&lt;/helloworld&gt;
      &lt;/rewrite&gt;
          &lt;/helloworld&gt;
   &lt;/blocks&gt;
      &lt;/global&gt;
     &lt;frontend&gt;
              &lt;routers&gt;
                      &lt;helloworld&gt;
                              &lt;use&gt;standard&lt;/use&gt;
                              &lt;args&gt;
                                    &lt;module&gt;M4U_HelloWorld&lt;/module&gt;
                                    &lt;frontName&gt;helloworld&lt;/frontName&gt;
                              &lt;/args&gt;
                      &lt;/helloworld&gt;
              &lt;/routers&gt;
      &lt;layout&gt;
          &lt;updates&gt;
              &lt;helloworld&gt;
                    &lt;file&gt;helloworld.xml&lt;/file&gt;
              &lt;/helloworld&gt;
          &lt;/updates&gt;
          &lt;/layout&gt;
      &lt;/frontend&gt;
  </code></pre>
  
  <p></p>
  
  <ol start="3">
  <li><p>Define frontend template<br>
  3.1. Define page layout in app/design/frontend/default/default/layout/helloworld.xml<br>
  <code>&lt;?xml version="1.0"?&gt;
  &lt;layout version="0.1.0"&gt;
      &lt;helloworld_index_index&gt;
          &lt;reference name="root"&gt;
              &lt;action method="setTemplate"&gt;                  &lt;template&gt;page/1column.phtml&lt;/template&gt;&lt;/action&gt;
          &lt;/reference&gt;
          &lt;reference name="content"&gt;
              &lt;block type="helloworld/helloworld" name="hello" template="helloworld/helloworld.phtml"/&gt;
          &lt;/reference&gt;
      &lt;/helloworld_index_index&gt;
  &lt;/layout&gt;</code></p></li>
  <li><p>Create template file in   app/design/frontend/default/default/template/helloworld/helloworld.phtml</p></li>
  </ol>