title: Layout does not load in Custom module of Magento
body: <p>I am writing a custom module for magento and having some problems here. My layout xml does not work. even i am not getting any exception or log. I have also try it after cache flushing and re-indexing through admin panel. <strong>hello message</strong> is printed which is put under IndexController.php but layout doesnot load.</p>
  
  <p>The layout xml file is put under 
  <code>/var/www/magento/app/design/frontend/default/default/layout/wsplugin.xml</code></p>
  
  <p><strong>config.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;config&gt;
     &lt;modules&gt;
            &lt;NAMESPACE_WSPlugin&gt;
                   &lt;version&gt;0.1.0&lt;/version&gt;   
                   &lt;depends&gt;
                          &lt;Mage_Catalog /&gt;
                   &lt;/depends&gt;
            &lt;/NAMESPACE_WSPlugin&gt;
     &lt;/modules&gt;
     &lt;frontend&gt;
            &lt;routers&gt;
                   &lt;wsplugin&gt;
                          &lt;use&gt;standard&lt;/use&gt;
                          &lt;args&gt;
                                 &lt;module&gt;NAMESPACE_WSPlugin&lt;/module&gt;
                                 &lt;frontName&gt;wsplugin&lt;/frontName&gt;  
                          &lt;/args&gt;
                   &lt;/wsplugin&gt;
            &lt;/routers&gt;
            &lt;layout&gt;
                   &lt;updates&gt;
                          &lt;wsplugin&gt;
                                 &lt;file&gt;wsplugin.xml&lt;/file&gt;
                          &lt;/wsplugin&gt;
                   &lt;/updates&gt;
            &lt;/layout&gt;
     &lt;/frontend&gt;
     &lt;global&gt;
            &lt;blocks&gt;
                   &lt;wsplugin&gt;
                           &lt;class&gt;NAMESPACE_WSPlugin_Block&lt;/class&gt;  
                   &lt;/wsplugin&gt;
            &lt;/blocks&gt;
            &lt;helpers&gt;
                   &lt;wsplugin&gt;
                          &lt;class&gt;NAMESPACE_WSPlugin_Helper&lt;/class&gt; 
                   &lt;/wsplugin&gt;
            &lt;/helpers&gt;
     &lt;/global&gt;
  &lt;/config&gt;
  </code></pre>
  
  <p><strong>IndexController.php</strong></p>
  
  <pre><code>&lt;?php
   class NAMESPACE_WSPlugin_IndexController extends Mage_Core_Controller_Front_Action {
       public function indexAction() {
        $this-&gt;loadLayout(); 
            $this-&gt;renderLayout();
            echo 'hello message';
       }
  }
  ?&gt;
  </code></pre>
  
  <p><strong>WSPlugin.php</strong>(Under NAMESPACE/WSPlugin/Block)</p>
  
  <pre><code>&lt;?php
     class NAMESPACE_WSPlugin_Block_WSPlugin extends Mage_Core_Block_Template {
      public function getWSPlugin() {
      return "get WS Plugin under Block";
      }
     }
  </code></pre>
  
  <p><strong>wsplugin.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;layout version="0.1.0"&gt;
  &lt;default&gt;
         &lt;reference name="content"&gt;
         &lt;/reference&gt;
  &lt;/default&gt;
     &lt;wsplugin_index_index&gt;
         &lt;reference name="content"&gt;
              &lt;block type="wsplugin/wsplugin" name="wsplugin" template="wsplugin/wsplugin.phtml" /&gt;
          &lt;/reference&gt;
     &lt;/wsplugin_index_index&gt;
  &lt;/layout&gt;
  </code></pre>
  
  <p><strong>wsplugin.phtml</strong></p>
  
  <pre><code>&lt;h4&gt;&lt;?php echo 'Welcome in WS Plugin';
     echo $this-&gt;getWSPlugin();
  ?&gt;&lt;/h4&gt;
  </code></pre>