RBAC it up!

23rdMay. × ’12

Learning the ins and outs of Yii authentication from an excellent collection of posts by Larry Ullman.  Need to take it to the next level with some RBAC.

Digging through Yii’s own documentation. Boy this is fun! Can someone explain why Yii uses an int field to hold AuthItem types? Why not an enum with ‘operation’,'task’,'role’? How hard is that? Not hard.  Not hard at all! oh well, I’m never supposed to have to look at it.

 

 

 

 

 

Like this? Share it!
This entry was posted in What I used today. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.
  • Mike Schuette

    Yii looks like it does exactly what CakePHP does; you build your DB, and then the framework builds scaffold code around it.  Cake does this in two steps – the scaffold code is fully dynamic, so you can change your DB schema and the scaffolding responds instantly.  Once you have things set up in the DB the way you want, you “bake” your application, where Cake takes the dynamically generated code and drops it into the correct MVC files so you can start customizing it.

    • Timothy Nott

      All this new-fangled stuff is like witch draft!

Switch to our mobile site