On Mar 17, 2007, at 9:47 AM, Stacey wrote:
> > hi all, > > i'm new to cakephp. i've read through most of the manual and have > completed the blog tutorial. i've got a decent feel for the basic > idea, but i'm confused about the best way to implement a menu. i'd > like to have the same menu on each page. i've coded the menu, and > could put it into the template, but i'm not sure how to set the > 'current' item in the menu. any help is appreciated...thanks. > > here is the html and css for a test menu i found. how can i include > this menu in my template, but dynamically set the (class="sel") for > the current item. One approach would be to place the HTML in a helper, check $this- >here to see what page you're on, and place some light logic in the element to set the classes according to the value of $this->here. -- John --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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 -~----------~----~----~----~------~----~------~--~---
