Thank you Miles!

That technique is exactly what I was looking for!

Nick

On Jan 13, 5:04 pm, Miles J <[email protected]> wrote:
> This is how I do mine:
>
> // controller action
> function login() {
>         $this->set('activeTab', 'login');
>
> }
>
> // the view
> <li<?php if ($activeTab == 'login') echo ' class="selected"'; ?>><a
> href="#">Login</a></li>
> <li<?php if ($activeTab == 'signup') echo ' class="selected"'; ?>><a
> href="#">Signup</a></li>
>
> Also, your function would go in the bootstrap.php file in your app/
> config/ folder.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to