title: How to setup Module Specific ACL Resource?
body: <p>Zend's Acl allows the resource to be created in controller only</p>
  
  <p>But, the controllers might be on any module not just only the default module. So, I read some article off the internet, I found one and tried this:</p>
  
  <pre><code>$acl -&gt; addResource(new Zend_Acl_Resource("admin"));
  $acl -&gt; addResource(new Zend_Acl_Resource("admin:page"), "admin");
  $acl -&gt; addResource(new Zend_Acl_Resource("admin:posts"), "admin");
  </code></pre>
  
  <p>But, still, when i browse to the respective pages, I get errors regarding resouce <code>page</code> not found, or <code>posts</code> not found.</p>
  
  <p>How to setup Module Specific ACL Resource?</p>
  
  <h2>Update:</h2>
  
  <pre><code>$acl -&gt; addrole(new Zend_Acl_Role('guest'))
      -&gt; addrole(new Zend_Acl_ROle('admin'), 'admin');
  
  $acl -&gt; addResource(new Zend_Acl_Resource("page")); //controller with same name in admin module exists
  
  $acl -&gt; addResource(new Zend_Acl_Resource("admin"));
  $acl -&gt; addResource(new Zend_Acl_Resource("admin:page"), "admin");
  $acl -&gt; addResource(new Zend_Acl_Resource("admin:posts"), "admin");
  
  $acl -&gt; deny(null, null);
  $acl -&gt; allow('user', 'page', 'view');
  $acl -&gt; allow('admin', null);
  </code></pre>