compared with
Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (12)

View Page History
{
/** This method is called after you registered your Loader, so you can load default configuration here. */
$acl->addRole(new $this->getAcl()->addRole(new Zend_Acl_Role('admin'));

/**
{
/** This method is called when the guest Role isn't found in the Zend_Acl Roles */
$acl->addRole(new $this->getAcl()->addRole(new Zend_Acl_Role('guest'));
}

{
/** This method is called when the cart Resource isn't found in the Zend_Acl Resources */
$acl->add(new $this->getAcl()->add(new Zend_Acl_Resource('cart'));

/** Setup privileges */
$acl->allow('guest', $this->getAcl()->allow('guest', 'cart', 'index');
$acl->allow('guest', 'cart', 'additem');
$acl->allow('guest', 'cart', 'removeitem');
->allow('guest', 'cart', 'additem')
->allow('guest', 'cart', 'removeitem');
}

{
/** This method is called when the configurationstuff Resource isn't found in the Zend_Acl Resources */
$acl->add(new Zend_Acl_Resource('configurationstuff')); $this->getAcl()->add(new Zend_Acl_Resource('configurationstuff'))
$acl->add(new Zend_Acl_Resource('orders'));
->add(new Zend_Acl_Resource('orders'));

/** This will do recursive call to setupNewsResource */
$acl->allow('admin', $this->getAcl()->allow('admin', 'news', 'add');
}

{
/** This method was called by loadConfigResources and not from the bootstrap file */
$acl->add(new $this->getAcl()->add(new Zend_Acl_Resource('news'));
}
}
{zone-data:milestones}
* Milestone 1: \[DONE\] Create ZF Wiki info.
* Milestone 2: \[DONE\] Working prototype and some examples (not yet uploaded). *UCs implemented click [here|http://framework.zend.com/wiki/download/attachments/39164/AclDynamic.zip] to download.*
* Milestone 3: Working prototype checked into the incubator supporting use cases.
* Milestone 4: Unit tests exist, work, and are checked into SVN.