title: Getting Current Controller ID in Yii
body: <p>I want to get the current controller name that handles the current action.
  but the in my case <strong>I will look for the current controller in my main.php in my layout files</strong>.</p>
  
  <p>this is my small view of my directory structure to give you an idea where is my layout files and the file where i will put my codes in searching of my controller name</p>
  
  <blockquote>
    <ul>
    <li>/protected</li>
    <li>/themes
    <ul>
    <li>/mylayout
    <ul>
    <li>/layouts
    <ul>
    <li><strong>main.php</strong></li>
    <li>column1.php</li>
    <li>column2.php</li>
    </ul></li>
    <li>/site
    <ul>
    <li>index.php</li>
    </ul></li>
    </ul></li>
    </ul></li>
    </ul>
  </blockquote>
  
  <p>Is this possible? im trying the following codes but i failed to get my current controller name...</p>
  
  <pre><code>echo Yii::app()-&gt;controller-&gt;getId;
  echo Yii:app()-&gt;getController-&gt;id;
  echo Yii:app()-&gt;controller-&gt;uniqueID;
  </code></pre>
  
  <p>thanks</p>