This post has NOT been accepted by the mailing list yet.
This post was updated on .
My question is pretty simple and should be easy to be resolved by expert zend 1.11 like you :D
I develop an application zend into a iFrame and the loggin part it's already done by an other project.
I receive only the id of the user not the role.
Roles are stored as follow in the mysql database in the same table of user id :
user id, role, create, read, update, delete
Can someone show me how I can manage the acl, I'm lost :(
What should I use, can I develop all the logic on the bootstrap ?
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
protected function _initAcl()
$acl = new Zend_Acl();
Zend_Registry::set('session', $session = new Zend_Session_Namespace('app'));
$user = new Application_Model_DbTable_User();
$role = $user->find($session->id)->current();