Phalcon PhpFramework - Routing
<p>Have an application using phalcon and I wants routes URLs like this :</p>

<p><a href="http://localhost/my-website/admin/cat" rel="nofollow">http://localhost/my-website/admin/cat</a>  -> use the "cat" controller and not the "admin" controller</p>

<p>Have done this and its works</p>

<pre><code>$router = new Phalcon\Mvc\Router();

    $router-&gt;add(
    "/admin/cat",
    array(
        "controller" =&gt; "cat",
        "action"     =&gt; "index"
    )
);
</code></pre>

<p>but  how to route things like :</p>

<p><a href="http://localhost/my-website/admin/cat/updatecat/22" rel="nofollow">http://localhost/my-website/admin/cat/updatecat/22</a>  -> use the "cat" controller with action "updatecat" and parameter "22" and not the "admin" controller</p>