<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: How to apply a beforeFilter to certain actions only</title>
	<atom:link href="http://cakebaker.wordpress.com/2006/08/03/how-to-apply-a-beforefilter-to-certain-actions-only/feed/" rel="self" type="application/rss+xml" />
	<link>http://cakebaker.wordpress.com/2006/08/03/how-to-apply-a-beforefilter-to-certain-actions-only/</link>
	<description>baking cakes with CakePHP</description>
	<lastBuildDate>Wed, 08 May 2013 13:40:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: JP</title>
		<link>http://cakebaker.wordpress.com/2006/08/03/how-to-apply-a-beforefilter-to-certain-actions-only/#comment-1256</link>
		<dc:creator><![CDATA[JP]]></dc:creator>
		<pubDate>Mon, 07 Aug 2006 19:12:34 +0000</pubDate>
		<guid isPermaLink="false">https://cakebaker.wordpress.com/2006/08/03/how-to-apply-a-beforefilter-to-certain-actions-only/#comment-1256</guid>
		<description><![CDATA[something I use in my controllers...
    function beforeFilter(){
		$excludeBeforeFilter = array(&#039;view&#039;,&#039;index&#039;);	
        if (!in_array($this-&gt;action,$excludeBeforeFilter)){
            $this-&gt;checkSession();
        }
    }
Just add any other actions you want to exclude from validation to the array.]]></description>
		<content:encoded><![CDATA[<p>something I use in my controllers&#8230;<br />
    function beforeFilter(){<br />
		$excludeBeforeFilter = array(&#8216;view&#8217;,'index&#8217;);<br />
        if (!in_array($this-&gt;action,$excludeBeforeFilter)){<br />
            $this-&gt;checkSession();<br />
        }<br />
    }<br />
Just add any other actions you want to exclude from validation to the array.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ianh</title>
		<link>http://cakebaker.wordpress.com/2006/08/03/how-to-apply-a-beforefilter-to-certain-actions-only/#comment-1209</link>
		<dc:creator><![CDATA[ianh]]></dc:creator>
		<pubDate>Fri, 04 Aug 2006 07:38:55 +0000</pubDate>
		<guid isPermaLink="false">https://cakebaker.wordpress.com/2006/08/03/how-to-apply-a-beforefilter-to-certain-actions-only/#comment-1209</guid>
		<description><![CDATA[Useful stuff thanks. Is there a similar way to stop custom functions (especially beforeSave()) from being called in your model?]]></description>
		<content:encoded><![CDATA[<p>Useful stuff thanks. Is there a similar way to stop custom functions (especially beforeSave()) from being called in your model?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
