I am doing same thing with you,And I found the following may help:
Zend framework has a package supporting Role based access
control,Zend_ACL
http://framework.zend.com/manual/en/zend.acl.html
Maybe this can help you.
2010/1/26 Abah Joseph
> Hi list, thank to the wonderful people on this li
out of space with 255 chars, the other SQL text/blob
column types are less efficient I'd think. But ultimately the concept is
the same as you're just using binary (true/false or 1/0) to determine if
someone has that particular grain of role flavored goodness.
ÐÆ5ÏÐ
"Some people, when
I developed an implementation that combines roles with fine grained
access. Each role is given a set of permissions ( the current set is
global to the app, the next will be per application) in it, I specify
a db field ( varchar 255) that holds a binary permission scheme. I.E.
10001 etc