Skip to content

Instantly share code, notes, and snippets.

View silverqx's full-sized avatar
:octocat:
exploration

Silver Zachara silverqx

:octocat:
exploration
  • Slovakia
  • 21:49 (UTC +01:00)
View GitHub Profile
@silverqx
silverqx / gist:1243530
Created September 26, 2011 21:59 — forked from jgornick/gist:249442
ZF: Zend_Application_Resource_Acl
# Adding a role
# resources.acl.roles.{roleName}.id = {roleId}
resources.acl.roles.guest.id = "G"
# Assigning parents to a role
# resources.acl.roles.{roleName}.parents = {parentRoleIds} (multiple in csv)
resources.acl.roles.user.id = "U"
resources.acl.roles.user.parents = "G"
# Adding a resource
require_once 'Zend/Application/Resource/ResourceAbstract.php';
/**
* TODO: short description.
*
* TODO: long description.
*
*/
class My_Resource_Database extends Zend_Application_Resource_ResourceAbstract
{