title: Magento: how to add a link via code to a block of a custom module?
body: <p>I'm trying to add a link to one of my blocks to a specific action of one of my controllers. Looking through the class docs and googling didn't resolve something useful. (maybe I just used the wrong search queries).</p>
  
  <p>My Controller has two actions:</p>
  
  <p>indexAction() and exportAction()</p>
  
  <p>Now, in one of my blocks I wand to add link to exportAction(). I've found the method addLink() but this doesn't work.</p>
  
  <p>Maybe anyone knows how to do that ? Or could point me to the right resources on the net ?</p>
  
  <p>Regards, Alex</p>
  
  <p>Block Example:</p>
  
  <pre><code>&lt;?php
  
  class Polyvision_Tempest_Block_Adminhtml_View extends Mage_Adminhtml_Block_Template
  {
      public function __construct()
      {
          parent::__construct();
      }
  
      protected function _toHtml()
      {
  
      $html = "whatever";
  
          return $html;
      }
  }
  ?&gt;
  </code></pre>