title: Yii check if homepage
body: <p>Is there a buildin method or property in Yii to check if page is homepage?</p>
  
  <p>I know i can use something like this:</p>
  
  <pre><code>$controller = Yii::app()-&gt;getController();
  $isHome = $controller-&gt;getAction()-&gt;getId() === 'index' ? true : false;
  </code></pre>
  
  <p>Or put it in a method in main controller, but i am looking for something cleaner. </p>
  
  <p>Thanks. </p>