title: Hide controller name when calling its methods
body: <p>I'm creating a website using CakePHP.
  It has user Registration and Login system.</p>
  
  <p>So at first i have a <code>controller</code> called <code>HomeController</code> which has three methods</p>
  
  <p>1) <code>index();</code></p>
  
  <p>2) <code>login();</code></p>
  
  <p>3) <code>register();</code></p>
  
  <p>by default <code>index()</code> method will execute.</p>
  
  <p>i have the following code to call other two methods.</p>
  
  <pre><code>&lt;? php
  
  echo $this-&gt;Html-&gt;link('Login',array('controller'=&gt;'Home','action'=&gt;'login'),array('escape'=&gt;FALSE));
  
  echo $this-&gt;Html-&gt;link('Register',array('controller'=&gt;'Home','action'=&gt;'register'),array('escape'=&gt;FALSE));
  
  ?&gt;
  </code></pre>
  
  <p>So now when i click on the above links (<code>login</code>,<code>register</code>) it will call appropriate method and the <code>url</code> will be something like</p>
  
  <p><code>www.example.com/home/login</code> and <code>www.example.com/home/register</code></p>
  
  <p>Now <strong>i want to remove the controller name from the url</strong> since the method is in the same controller.</p>
  
  <p>So the <code>url</code> should look like </p>
  
  <p><code>www.example.com/login</code> and <code>www.example.com/register</code></p>
  
  <p>is it possible??
  Please help..</p>