title: How to know which controller has rendered a layout in cakePHP?
body: <p>Most of the views in the app render a <code>default</code> layout. It also has a navigation menu which purpose is to navigate users through the controllers and it looks like this:</p>
  
  <pre><code>&lt;li class="dashboard"&gt;&lt;?php echo $this-&gt;Html-&gt;link('dashboard', array('controller'=&gt;'events', 'action'=&gt;'dashboard'))?&gt;&lt;/li&gt;
  &lt;li class="users"&gt;&lt;?php echo $this-&gt;Html-&gt;link('users', array('controller'=&gt;'users', 'action'=&gt;'index'))?&gt;&lt;/li&gt;
  &lt;li class="dates"&gt;&lt;?php echo $this-&gt;Html-&gt;link('dates', array('controller'=&gt;'dates', 'action'=&gt;'index'))?&gt;&lt;/li&gt;
  &lt;li class="projets"&gt;&lt;?php echo $this-&gt;Html-&gt;link('sager', array('controller'=&gt;'projcets', 'action'=&gt;'index'))?&gt;&lt;/li&gt;
  </code></pre>
  
  <p>Based on which controller had rendered the layout, I would like to add <code>active</code> to <code>&lt;li class=""&gt;</code> so I could style that particular element differently.</p>
  
  <p>Any help or guidance on how to get to know which controller had rendered the layout is much appreciated.</p>