Created
June 2, 2011 18:42
-
-
Save BrendonVanHeyzen/1004998 to your computer and use it in GitHub Desktop.
Zend_Acl Bootstrap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Our bootstrap | |
*/ | |
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap | |
{ | |
/** | |
* Will init our acl | |
* | |
* @return void | |
*/ | |
protected function _initAcl() | |
{ | |
$AppAcl = new Application_Plugins_Acl(); | |
$AppAcl->setupAcl(); | |
Zend_Registry::set('acl', $AppAcl->getZendAcl()); | |
Zend_View_Helper_Navigation_HelperAbstract::setDefaultAcl($AppAcl->getZendAcl()); | |
if (! is_null($AppAcl->getRole())) | |
{ | |
$this->Role = $AppAcl->getRole(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment