Using Yii2 RBAC PHP Auth Manager without having to use assign()


Sammaye's Blog

I had a problem recently where, after upgrading Yii2 to latest, I had to give auth assignments where previous I did not. I found this cumbersome, mainly since it would mean adding 100,000 entries to the rbac.php file when my auth system as simple as a single role to a user in a field called role in a row in a user table.

So I looked around to bring back the old functionality, I didn’t get far so then I decided to recode PhpManager to do it for me:

Feel free to use and abuse.

View original post

Advertisements
About

myself pramodh kumar yet another php developer from India and have worked on oops,procedural,yii framework,codeigniter,wordpress,joomla,api and more.

Tagged with: ,
Posted in yii framwork

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow php tutorial on WordPress.com
categories
Calendar
June 2014
M T W T F S S
« May   Jul »
 1
2345678
9101112131415
16171819202122
23242526272829
30  
Follow me on Twitter
Blog Stats
  • 74,620 hits
%d bloggers like this: