On Dec 12, 11:47 am, Lucky1968 <[email protected]> wrote: > Is there anyone who can give me advise on which menu helper to use in > this case? > > I need to generate an <ul> nested tree menu which indicates (adds > class="active") the current li AND all of its parents. > > I tried to do this with > > http://bakery.cakephp.org/articles/AD7six/2008/01/24/tree-helper-1 > > but when adding > > if (some logic) { > > $tree->addItemAttribute('class', 'active'); > > } > > as described in the documentation it seem to add it only to the first > li and not to another one.
That's how that's designed to work > > I'm thinking of implementing > > https://github.com/AD7six/mi/blob/master/views/helpers/menu.php > > but because of the lack of documentation it's not clear to me: how to > implement this, if it's necessary to use the whole 'mi'-plugin, and if > it can do what I need? after reading the doc blocs and test case - can you please clarify what documentation you are expecting that you can't find? What have you tried and what happened? Alternatively you may find it's easier to just write your own loop. AD -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
