title: How can I define block for my Magento controller in layout XML?
body: <p>I have controller and it has following code:</p>
  
  <pre><code>class Company_ModuleName_NameController extends Mage_Core_Controller_Front_Action
  {
  
      public function indexAction()
      {
          $this-&gt;loadLayout();     
          $this-&gt;renderLayout();
      }
  }
  </code></pre>
  
  <p>Then I have configured layout XML in my config.xml. Now I would like to add block that points to .phtml file and when user access my controller, that .phtml file would be shown to user.</p>