CakePHP highlight active menu item for page
Copy this code and paste it in your HTML
<li class="<?php if($this->viewVars['page'] == 'home') { echo 'active'; } ?>">
<?php echo $html->link('Home', '/') ?>
</li>
Report this snippet
Comments
Subscribe to comments