how to generate a user based menu

93 views
Skip to first unread message

Mike Pe

unread,
Feb 4, 2013, 2:33:21 PM2/4/13
to yii-...@googlegroups.com
is there any way to show menu items based on the auth role?

Christoffer Niska

unread,
Feb 4, 2013, 2:46:20 PM2/4/13
to Mike Pe, yii-...@googlegroups.com
Yeah, you can use the 'visible' property for each menu item and call Yii::app()->user->checkAccess() for the result.

-Chris


On Mon, Feb 4, 2013 at 9:33 PM, Mike Pe <mpeue...@googlemail.com> wrote:
is there any way to show menu items based on the auth role?

--
You received this message because you are subscribed to the Google Groups "yii-auth" group.
To unsubscribe from this group and stop receiving emails from it, send an email to yii-auth+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Best regards,
Christoffer Niska
Phone +358 500 980 565
Reply all
Reply to author
Forward
0 new messages