[Agavi-Users] Active / Current Class in Menu

1 view
Skip to first unread message

Michal Charemza

unread,
Mar 4, 2009, 3:13:53 AM3/4/09
to Agavi Users Mailing List
Hi,

I would like the class of menu elements to depend on the route /
action. I.e. I would like the current item to have a "current" class
to be able to style it differently in CSS. I'm not sure how to do
it... I've had a look at the Sample App Menu, but I don't think it
does that.

Any suggestions?

Michal.

_______________________________________________
users mailing list
us...@lists.agavi.org
http://lists.agavi.org/mailman/listinfo/users

David Zülke

unread,
Mar 4, 2009, 8:21:32 AM3/4/09
to Agavi Users Mailing List
$request->getAttribute('matched_routes', 'org.agavi.routing');

should help.

Michal

unread,
Mar 4, 2009, 9:01:37 AM3/4/09
to Agavi Users Mailing List
Thanks!
Reply all
Reply to author
Forward
0 new messages