<?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: CakePHP, beforeFilter, and the Error Error</title>
	<atom:link href="http://www.bradezone.com/2009/05/21/cakephp-beforefilter-and-the-error-error/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bradezone.com/2009/05/21/cakephp-beforefilter-and-the-error-error/</link>
	<description>I ate milk for breakfast. I danced my dance.</description>
	<lastBuildDate>Sat, 14 Aug 2010 13:41:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Bravo Kernel</title>
		<link>http://www.bradezone.com/2009/05/21/cakephp-beforefilter-and-the-error-error/comment-page-1/#comment-783</link>
		<dc:creator>Bravo Kernel</dc:creator>
		<pubDate>Sat, 14 Aug 2010 13:41:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.bradezone.com/?p=549#comment-783</guid>
		<description>Your suggestion has solved my problem with (dynamically set) themes not being detected by CakeError as well. Great tip, thanks man!</description>
		<content:encoded><![CDATA[<p>Your suggestion has solved my problem with (dynamically set) themes not being detected by CakeError as well. Great tip, thanks man!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Rhodes</title>
		<link>http://www.bradezone.com/2009/05/21/cakephp-beforefilter-and-the-error-error/comment-page-1/#comment-780</link>
		<dc:creator>Paul Rhodes</dc:creator>
		<pubDate>Sun, 25 Jul 2010 14:08:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.bradezone.com/?p=549#comment-780</guid>
		<description>Great article. I&#039;ve been working on unearthing the same issue on my production API for a couple of hours now. Google has loads of links that describe how to create custom error handling within CakePHP. The issue of calling beforeFilter is critcal to my app and you have saved my sanity. Thanks :-)</description>
		<content:encoded><![CDATA[<p>Great article. I&#8217;ve been working on unearthing the same issue on my production API for a couple of hours now. Google has loads of links that describe how to create custom error handling within CakePHP. The issue of calling beforeFilter is critcal to my app and you have saved my sanity. Thanks :-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nicolae N</title>
		<link>http://www.bradezone.com/2009/05/21/cakephp-beforefilter-and-the-error-error/comment-page-1/#comment-747</link>
		<dc:creator>Nicolae N</dc:creator>
		<pubDate>Sun, 20 Dec 2009 22:43:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.bradezone.com/?p=549#comment-747</guid>
		<description>Hah, it seems not only me got this problem, luckily you Brade solved it already and was kind enough to share the solution, thank you ;)</description>
		<content:encoded><![CDATA[<p>Hah, it seems not only me got this problem, luckily you Brade solved it already and was kind enough to share the solution, thank you ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Seb G</title>
		<link>http://www.bradezone.com/2009/05/21/cakephp-beforefilter-and-the-error-error/comment-page-1/#comment-742</link>
		<dc:creator>Seb G</dc:creator>
		<pubDate>Thu, 03 Dec 2009 19:04:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.bradezone.com/?p=549#comment-742</guid>
		<description>wow... saves me a lot of time... I was working with language links 

ex.:
example.com/eng/controllers/action
example.com/fre/controllers/action

and it solve my problem cause each time there was an error my language params was gone... THKS a lot</description>
		<content:encoded><![CDATA[<p>wow&#8230; saves me a lot of time&#8230; I was working with language links </p>
<p>ex.:<br />
example.com/eng/controllers/action<br />
example.com/fre/controllers/action</p>
<p>and it solve my problem cause each time there was an error my language params was gone&#8230; THKS a lot</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brade</title>
		<link>http://www.bradezone.com/2009/05/21/cakephp-beforefilter-and-the-error-error/comment-page-1/#comment-708</link>
		<dc:creator>Brade</dc:creator>
		<pubDate>Thu, 10 Sep 2009 12:58:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.bradezone.com/?p=549#comment-708</guid>
		<description>I haven&#039;t worked with AMF, but if it&#039;s anything like Cake, there should be a file like &quot;app_controller.php&quot; that runs before any individual class file. But for all I know, it might be totally different.</description>
		<content:encoded><![CDATA[<p>I haven&#8217;t worked with AMF, but if it&#8217;s anything like Cake, there should be a file like &#8220;app_controller.php&#8221; that runs before any individual class file. But for all I know, it might be totally different.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: S.G,</title>
		<link>http://www.bradezone.com/2009/05/21/cakephp-beforefilter-and-the-error-error/comment-page-1/#comment-707</link>
		<dc:creator>S.G,</dc:creator>
		<pubDate>Thu, 10 Sep 2009 00:55:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.bradezone.com/?p=549#comment-707</guid>
		<description>Hi, nice site, thanks for the infos. 

I have a query -  I have an app with 20+ classes using AMFPHP.  I am using the beforeFilter() to validate requests and it works fine, however I want to store the beforeFilter function centrally. It&#039;s a pain to have it sitting at the top of EVERY class file. I tried having it in a PHP include to no avail. It doesn&#039;t recognize it.   Any tips?  I&#039;m a bit new to AMF...

Thanks,
S</description>
		<content:encoded><![CDATA[<p>Hi, nice site, thanks for the infos. </p>
<p>I have a query &#8211;  I have an app with 20+ classes using AMFPHP.  I am using the beforeFilter() to validate requests and it works fine, however I want to store the beforeFilter function centrally. It&#8217;s a pain to have it sitting at the top of EVERY class file. I tried having it in a PHP include to no avail. It doesn&#8217;t recognize it.   Any tips?  I&#8217;m a bit new to AMF&#8230;</p>
<p>Thanks,<br />
S</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew Lawson</title>
		<link>http://www.bradezone.com/2009/05/21/cakephp-beforefilter-and-the-error-error/comment-page-1/#comment-693</link>
		<dc:creator>Andrew Lawson</dc:creator>
		<pubDate>Wed, 15 Jul 2009 21:44:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.bradezone.com/?p=549#comment-693</guid>
		<description>I was having the same problems, and couldn&#039;t overcome the problems until I read your article. Helped a lot, thanks.

I did have a small problem with it though. the code above loaded up the beforeFilter() fine, and I added a beforeRender() aswell, just because my layout needs it. The problem was that even though my components were loaded, they didn&#039;t do anything. I added:

$this-&gt;MyNiceComponent-&gt;startup($this); 

to the bottom of the _construct() and all was fine.

Just thought I&#039;d post it, incase others get a bit stuck.</description>
		<content:encoded><![CDATA[<p>I was having the same problems, and couldn&#8217;t overcome the problems until I read your article. Helped a lot, thanks.</p>
<p>I did have a small problem with it though. the code above loaded up the beforeFilter() fine, and I added a beforeRender() aswell, just because my layout needs it. The problem was that even though my components were loaded, they didn&#8217;t do anything. I added:</p>
<p>$this-&gt;MyNiceComponent-&gt;startup($this); </p>
<p>to the bottom of the _construct() and all was fine.</p>
<p>Just thought I&#8217;d post it, incase others get a bit stuck.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: seo free</title>
		<link>http://www.bradezone.com/2009/05/21/cakephp-beforefilter-and-the-error-error/comment-page-1/#comment-677</link>
		<dc:creator>seo free</dc:creator>
		<pubDate>Mon, 15 Jun 2009 15:41:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.bradezone.com/?p=549#comment-677</guid>
		<description>very informative post for beforeFilter of cakphp..helped me lot..thanks..:)</description>
		<content:encoded><![CDATA[<p>very informative post for beforeFilter of cakphp..helped me lot..thanks..:)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Toumaz</title>
		<link>http://www.bradezone.com/2009/05/21/cakephp-beforefilter-and-the-error-error/comment-page-1/#comment-676</link>
		<dc:creator>Toumaz</dc:creator>
		<pubDate>Sun, 14 Jun 2009 07:10:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.bradezone.com/?p=549#comment-676</guid>
		<description>Cheers for this! I was having this problem myself and your solution was heaps better than my own hack. :)</description>
		<content:encoded><![CDATA[<p>Cheers for this! I was having this problem myself and your solution was heaps better than my own hack. :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brade</title>
		<link>http://www.bradezone.com/2009/05/21/cakephp-beforefilter-and-the-error-error/comment-page-1/#comment-669</link>
		<dc:creator>Brade</dc:creator>
		<pubDate>Tue, 26 May 2009 15:54:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.bradezone.com/?p=549#comment-669</guid>
		<description>Matt, thanks for the info. Your solution works fine in production mode for the 404 page specifically. I guess I wanted my solution to cover all the other error pages, including ones that are used in development mode, like &quot;missing controller&quot; and &quot;missing action,&quot; etc.</description>
		<content:encoded><![CDATA[<p>Matt, thanks for the info. Your solution works fine in production mode for the 404 page specifically. I guess I wanted my solution to cover all the other error pages, including ones that are used in development mode, like &#8220;missing controller&#8221; and &#8220;missing action,&#8221; etc.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Curry</title>
		<link>http://www.bradezone.com/2009/05/21/cakephp-beforefilter-and-the-error-error/comment-page-1/#comment-668</link>
		<dc:creator>Matt Curry</dc:creator>
		<pubDate>Fri, 22 May 2009 16:37:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.bradezone.com/?p=549#comment-668</guid>
		<description>That didn&#039;t come out well...one more try:

&lt;?php
class AppError extends ErrorHandler {
  function error404() {
    $this-&gt;controller-&gt;beforeFilter();
    parent::error404();
  }
}
?&gt;
</description>
		<content:encoded><![CDATA[<p>That didn&#8217;t come out well&#8230;one more try:</p>
<p>&lt;?php<br />
class AppError extends ErrorHandler {<br />
  function error404() {<br />
    $this-&gt;controller-&gt;beforeFilter();<br />
    parent::error404();<br />
  }<br />
}<br />
?&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Curry</title>
		<link>http://www.bradezone.com/2009/05/21/cakephp-beforefilter-and-the-error-error/comment-page-1/#comment-667</link>
		<dc:creator>Matt Curry</dc:creator>
		<pubDate>Fri, 22 May 2009 16:35:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.bradezone.com/?p=549#comment-667</guid>
		<description>What about creating an app_error.ctp in /app with:
controller-&gt;beforeFilter();
    parent::error404();
  }
}
?&gt;</description>
		<content:encoded><![CDATA[<p>What about creating an app_error.ctp in /app with:<br />
controller-&gt;beforeFilter();<br />
    parent::error404();<br />
  }<br />
}<br />
?&gt;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
