<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Thu, 23 May 2013 11:21:21 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Brandon Savage's Blog: Controlling Access: Zend_Navigation and Zend_Acl]]></title>
      <guid>http://www.phpdeveloper.org/news/14287</guid>
      <link>http://www.phpdeveloper.org/news/14287</link>
      <description><![CDATA[<p>
In the next part of his Zend_Navigation series <i>Brandon Savage</i> takes a look at <a href="http://www.brandonsavage.net/controlling-access-zend_navigation-and-zend_acl/">integrating it with Zend_Acl</a> to add permissions/roles into the mix, showing certain things for certain users.
</p>
<blockquote>
What happens when you have special areas of your site, say for subscribers or administrators? Controlling access is something that all web developers must do at some point. This is where integration between Zend_Navigation and Zend_Acl comes in.
</blockquote>
<p>
He shows how to set up the access control levels for an "Admin" section in an example navigation array. It uses the "resource" and "privilege" attributes to define the group and role that has access to that navigation item. Then, with a "setAcl" call you can pull that information in and the two lines of code to output it.
</p>]]></description>
      <pubDate>Fri, 02 Apr 2010 08:59:55 -0500</pubDate>
    </item>
  </channel>
</rss>
