Posted By

benjaminpearson on 08/11/09


Tagged

textmate cakephp


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

techdetours
hmvrulz
barbietunnie


CakePHP highlight active menu item for page


 / Published in: Other
 

  1. <ul>
  2. <li class="<?php if($this->viewVars['page'] == 'home') { echo 'active'; } ?>"><?php echo $html->link('Home', '/') ?></li>
  3. </ul>

Report this snippet  

You need to login to post a comment.