title: Magento: generating url for a backend action (with key)
body: <p>I am working on a demo Magento store (CE v1.7)</p>
  
  <p>I want to generate a link for an action (index) of a controller (index) of the module (Mymodule), I want to display the link in the home page so I can access to Mymodule functionnality directly</p>
  
  <p>how can I achieve this (without disabling the keys generation)?</p>
  
  <p>I have already tried the following code, but I get redurected to the dashboard:</p>
  
  <pre><code>&lt;?php $key = Mage::getSingleton('adminhtml/url')-&gt;getSecretKey("acompany_mymodule/index/","index"); ?&gt;
      &lt;a href="&lt;?php echo Mage::helper("adminhtml")-&gt;getUrl("acompany_mymodule/index/index/",array("key" =&gt; $key)); ?&gt;"&gt;My action &lt;/a&gt;
  </code></pre>