<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Zend_Acl + Zend_Auth + Zend_Controller_Plugin = HAPPY!</title>
	<atom:link href="http://justanotherdeveloper.co.uk/php/zend_acl-zend_auth-zend_controller_plugin-happy/feed/" rel="self" type="application/rss+xml" />
	<link>http://justanotherdeveloper.co.uk/php/zend_acl-zend_auth-zend_controller_plugin-happy/</link>
	<description></description>
	<lastBuildDate>Tue, 24 Aug 2010 15:55:33 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Ludovic Gasc</title>
		<link>http://justanotherdeveloper.co.uk/php/zend_acl-zend_auth-zend_controller_plugin-happy/comment-page-1/#comment-515</link>
		<dc:creator>Ludovic Gasc</dc:creator>
		<pubDate>Tue, 20 Jul 2010 08:17:44 +0000</pubDate>
		<guid isPermaLink="false">http://justanotherdeveloper.co.uk/?p=104#comment-515</guid>
		<description>You must also add in your application.ini:
acl.resources.allow.user.logout = guest

Withou this, you can&#039;t logout.</description>
		<content:encoded><![CDATA[<p>You must also add in your application.ini:<br />
acl.resources.allow.user.logout = guest</p>
<p>Withou this, you can&#8217;t logout.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Skoua</title>
		<link>http://justanotherdeveloper.co.uk/php/zend_acl-zend_auth-zend_controller_plugin-happy/comment-page-1/#comment-513</link>
		<dc:creator>Skoua</dc:creator>
		<pubDate>Wed, 19 May 2010 00:34:35 +0000</pubDate>
		<guid isPermaLink="false">http://justanotherdeveloper.co.uk/?p=104#comment-513</guid>
		<description>Nevermind I found the solution.

What about redirecting a denied role to a denied action in the error controller instead of redirecting to the login page?</description>
		<content:encoded><![CDATA[<p>Nevermind I found the solution.</p>
<p>What about redirecting a denied role to a denied action in the error controller instead of redirecting to the login page?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Skoua</title>
		<link>http://justanotherdeveloper.co.uk/php/zend_acl-zend_auth-zend_controller_plugin-happy/comment-page-1/#comment-512</link>
		<dc:creator>Skoua</dc:creator>
		<pubDate>Tue, 18 May 2010 23:52:25 +0000</pubDate>
		<guid isPermaLink="false">http://justanotherdeveloper.co.uk/?p=104#comment-512</guid>
		<description>Hey.

Thanks for this great tut.

I&#039;m just having a small issue.

Once the AclPlugin is registered to the front controller, I&#039;m getting this error:
Fatal error: Cannot redeclare class Application_Acl in /Applications/MAMP/htdocs/.../library/Application/Acl.php  on line 58

Any idea why?

Thanks.</description>
		<content:encoded><![CDATA[<p>Hey.</p>
<p>Thanks for this great tut.</p>
<p>I&#8217;m just having a small issue.</p>
<p>Once the AclPlugin is registered to the front controller, I&#8217;m getting this error:<br />
Fatal error: Cannot redeclare class Application_Acl in /Applications/MAMP/htdocs/&#8230;/library/Application/Acl.php  on line 58</p>
<p>Any idea why?</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pete</title>
		<link>http://justanotherdeveloper.co.uk/php/zend_acl-zend_auth-zend_controller_plugin-happy/comment-page-1/#comment-511</link>
		<dc:creator>Pete</dc:creator>
		<pubDate>Mon, 17 May 2010 12:07:22 +0000</pubDate>
		<guid isPermaLink="false">http://justanotherdeveloper.co.uk/?p=104#comment-511</guid>
		<description>Thanks for this.

There is also another small typo. In /library/Application/Controller/Plugin/Acl.php you can remove the print_r on line 17.

KUTGW!</description>
		<content:encoded><![CDATA[<p>Thanks for this.</p>
<p>There is also another small typo. In /library/Application/Controller/Plugin/Acl.php you can remove the print_r on line 17.</p>
<p>KUTGW!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Evert</title>
		<link>http://justanotherdeveloper.co.uk/php/zend_acl-zend_auth-zend_controller_plugin-happy/comment-page-1/#comment-508</link>
		<dc:creator>Evert</dc:creator>
		<pubDate>Wed, 28 Apr 2010 09:19:57 +0000</pubDate>
		<guid isPermaLink="false">http://justanotherdeveloper.co.uk/?p=104#comment-508</guid>
		<description>He there

first of all thnx for this one it made several things clear :)
but i still have a question, how can you combine this with zend_navigation?

I need some links be hidden if the user is &#039;guest&#039;

thnx !</description>
		<content:encoded><![CDATA[<p>He there</p>
<p>first of all thnx for this one it made several things clear <img src='http://justanotherdeveloper.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
but i still have a question, how can you combine this with zend_navigation?</p>
<p>I need some links be hidden if the user is &#8216;guest&#8217;</p>
<p>thnx !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alekc</title>
		<link>http://justanotherdeveloper.co.uk/php/zend_acl-zend_auth-zend_controller_plugin-happy/comment-page-1/#comment-504</link>
		<dc:creator>Alekc</dc:creator>
		<pubDate>Fri, 19 Mar 2010 15:16:08 +0000</pubDate>
		<guid isPermaLink="false">http://justanotherdeveloper.co.uk/?p=104#comment-504</guid>
		<description>You have a small typo in /library/Application/Acl.php on line 42, it should be if($permissions  == &#039;allow&#039;) instead of if($permissions  = &#039;allow&#039;) ;)</description>
		<content:encoded><![CDATA[<p>You have a small typo in /library/Application/Acl.php on line 42, it should be if($permissions  == &#8216;allow&#8217;) instead of if($permissions  = &#8216;allow&#8217;) <img src='http://justanotherdeveloper.co.uk/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben</title>
		<link>http://justanotherdeveloper.co.uk/php/zend_acl-zend_auth-zend_controller_plugin-happy/comment-page-1/#comment-494</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Thu, 18 Feb 2010 16:49:05 +0000</pubDate>
		<guid isPermaLink="false">http://justanotherdeveloper.co.uk/?p=104#comment-494</guid>
		<description>Right now I have the acl in it&#039;s own config. I load the config and the model in the bootstrap then save the acl model to the registry so I can use it in my Access plugin.

I need to set up caching for this since I think parsing this file all the time might be a performance hit. Especially when it gets big.

The odd thing is, I did not think setting a model would work in the boostrap because it is invoked before the app knows about the models (at least that is what I thought).

    protected function _initAcl() {
        $aclConfig = new Zend_Config_Ini(APPLICATION_PATH . &#039;/configs/acl.ini&#039;, APPLICATION_ENV);        
        $aclModel = new Model_Acl($aclConfig);        

        Zend_Registry::set(&#039;aclModel&#039;, $aclModel);
        
    } 

To be safe I think I will move the model instantiation and caching to my Access plugin. This will also keep all the acl stuff more centrally located.

Fun! fun!</description>
		<content:encoded><![CDATA[<p>Right now I have the acl in it&#8217;s own config. I load the config and the model in the bootstrap then save the acl model to the registry so I can use it in my Access plugin.</p>
<p>I need to set up caching for this since I think parsing this file all the time might be a performance hit. Especially when it gets big.</p>
<p>The odd thing is, I did not think setting a model would work in the boostrap because it is invoked before the app knows about the models (at least that is what I thought).</p>
<p>    protected function _initAcl() {<br />
        $aclConfig = new Zend_Config_Ini(APPLICATION_PATH . &#8216;/configs/acl.ini&#8217;, APPLICATION_ENV);<br />
        $aclModel = new Model_Acl($aclConfig);        </p>
<p>        Zend_Registry::set(&#8216;aclModel&#8217;, $aclModel);</p>
<p>    } </p>
<p>To be safe I think I will move the model instantiation and caching to my Access plugin. This will also keep all the acl stuff more centrally located.</p>
<p>Fun! fun!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gavin Williams</title>
		<link>http://justanotherdeveloper.co.uk/php/zend_acl-zend_auth-zend_controller_plugin-happy/comment-page-1/#comment-493</link>
		<dc:creator>Gavin Williams</dc:creator>
		<pubDate>Thu, 18 Feb 2010 15:26:02 +0000</pubDate>
		<guid isPermaLink="false">http://justanotherdeveloper.co.uk/?p=104#comment-493</guid>
		<description>There is also an easier way to access your application.ini file through the bootstrap!</description>
		<content:encoded><![CDATA[<p>There is also an easier way to access your application.ini file through the bootstrap!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gavin Williams</title>
		<link>http://justanotherdeveloper.co.uk/php/zend_acl-zend_auth-zend_controller_plugin-happy/comment-page-1/#comment-492</link>
		<dc:creator>Gavin Williams</dc:creator>
		<pubDate>Thu, 18 Feb 2010 15:24:18 +0000</pubDate>
		<guid isPermaLink="false">http://justanotherdeveloper.co.uk/?p=104#comment-492</guid>
		<description>It&#039;s no problem, I&#039;m glad this helped demystify this somewhat! I&#039;ve amended the article so that it throws an exception now.</description>
		<content:encoded><![CDATA[<p>It&#8217;s no problem, I&#8217;m glad this helped demystify this somewhat! I&#8217;ve amended the article so that it throws an exception now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben</title>
		<link>http://justanotherdeveloper.co.uk/php/zend_acl-zend_auth-zend_controller_plugin-happy/comment-page-1/#comment-491</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Thu, 18 Feb 2010 00:45:43 +0000</pubDate>
		<guid isPermaLink="false">http://justanotherdeveloper.co.uk/?p=104#comment-491</guid>
		<description>Never mind I figured this out.

In the example code if a resource is not found the resource is set to null. In my circumstance this is the 404 condition.

So rather than setting the resource to null, i throw an exception which is handled by the error controller.

Anyhew, thanks for the above very useful.</description>
		<content:encoded><![CDATA[<p>Never mind I figured this out.</p>
<p>In the example code if a resource is not found the resource is set to null. In my circumstance this is the 404 condition.</p>
<p>So rather than setting the resource to null, i throw an exception which is handled by the error controller.</p>
<p>Anyhew, thanks for the above very useful.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
