Studyon Minte9.com
ZF 1.0




Redirect



acl.5.testing

#Application/config/acl.ini
[acl]
;ROLES
acl.roles.guest = null
acl.roles.user = guest
acl.roles.admin = user
;RESOURCES
;allow
acl.resources.allow.default.frontend.all = guest
;deny
acl.resources.deny.default.frontend.test = guest

#Application/Plugin/Acl.php
<?php
...
	public function preDispatch(Zend_Controller_Request_Abstract $request) {
		
		$role = "guest";
		$resource = $request->getModuleName().":".$request->getControllerName().":".$request->getActionName();

		if (!$this->_acl->isAllowed($role, $resource)) {
			header ( "Location: /default/frontend/login"); exit;
			// OR
			//$request->setModuleName('default')->setControllerName('frontend')->setActionName('login');
		}
	}


http://joe.topjian.net/post/483759115/my-zend-acl-implementation