title: How to get Yii parameters directly from the querystring (URL)
body: <p>I am using the latest version of Yii and trying to basically collate the URL parameters.</p>
  
  <p>For instance if my URL was as follows:</p>
  
  <pre><code>site.com/events/199/111
  </code></pre>
  
  <p>What is the function to grab the first parameter e.g '199' and similarly again to say grab the 2nd parameter e.g '111'.</p>
  
  <p>I remember CodeIgniter has <code>$this-&gt;url-&gt;segment(1)</code>, I basically need the same functionality to Yii :)</p>