Skip to content

Instantly share code, notes, and snippets.

@BrendonVanHeyzen
Created June 2, 2011 18:42
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BrendonVanHeyzen/1004998 to your computer and use it in GitHub Desktop.
Save BrendonVanHeyzen/1004998 to your computer and use it in GitHub Desktop.
Zend_Acl Bootstrap
<?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