title: YII URLManager for RESTfull API
body: <p>Trying to work on a RESTfull API with yii (being the first project using yii)</p>
  
  <p>Having problem with getting URLManager to properly route calls: </p>
  
  <pre><code>    'urlManager' =&gt; array(
          'urlFormat' =&gt; 'path',
          'showScriptName' =&gt; false,
          'caseSensitive' =&gt; false,
          'rules' =&gt; array(
            'api/&lt;controller&gt;' =&gt; array('api/&lt;controller&gt;/list', 'verb' =&gt; 'GET'),
            'api/&lt;controller&gt;' =&gt; array('api/&lt;controller&gt;/create', 'verb' =&gt; 'POST'),
          ),
      ),
  </code></pre>
  
  <p>Tried working with this (this is not the full snippet, I had dispatchers for PUT/DELETE etc..
  But it did not work... Being desperate, I tried even something as simple as that:</p>
  
  <pre><code>    'urlManager' =&gt; array(
          'urlFormat' =&gt; 'path',
          'showScriptName' =&gt; false,
          'caseSensitive' =&gt; false,
          'rules' =&gt; array(
              'tezt' =&gt; array('landing/beta', 'verb' =&gt; 'GET'),
              'tezt' =&gt; array('landing', 'verb' =&gt; 'POST'),
          ),
      ),
  </code></pre>
  
  <p>whenever I remove one of the rules, it works, but when I put both the rules in, none of them works, I get exception
      exception.CHttpException.404    </p>
  
  <pre><code> exception 'CHttpException' with message 'Unable to resolve the request
   "tezt".' in /yii-1.1.10/web/CWebApplication.php:280
  </code></pre>
  
  <p>Been banging my head agains this for 2 days now. Probably seen all the samples and tutorials on URLManager on the web (although could not find a straightforward and complete explanation of the rules). But, no joy.</p>
  
  <p>Am I doing something wrong? Is it my box setup maybe? </p>