<?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 for CakePHP findings</title>
	<atom:link href="http://griffinm.wordpress.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://griffinm.wordpress.com</link>
	<description>My information store for CakePHP</description>
	<lastBuildDate>Thu, 24 Sep 2009 00:52:28 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on A simple way to order results in a pagination query by silverage</title>
		<link>http://griffinm.wordpress.com/2007/05/29/a-simple-way-to-order-results-in-a-pagination-query/#comment-745</link>
		<dc:creator>silverage</dc:creator>
		<pubDate>Thu, 24 Sep 2009 00:52:28 +0000</pubDate>
		<guid isPermaLink="false">http://griffinm.wordpress.com/2007/05/29/a-simple-way-to-order-results-in-a-pagination-query/#comment-745</guid>
		<description>many thanks!!! :)</description>
		<content:encoded><![CDATA[<p>many thanks!!! <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on A simple way to order results in a pagination query by Mohammed</title>
		<link>http://griffinm.wordpress.com/2007/05/29/a-simple-way-to-order-results-in-a-pagination-query/#comment-744</link>
		<dc:creator>Mohammed</dc:creator>
		<pubDate>Sat, 01 Aug 2009 15:39:46 +0000</pubDate>
		<guid isPermaLink="false">http://griffinm.wordpress.com/2007/05/29/a-simple-way-to-order-results-in-a-pagination-query/#comment-744</guid>
		<description>thanks for this, after 2 hours of headache.</description>
		<content:encoded><![CDATA[<p>thanks for this, after 2 hours of headache.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Containable in CakePHP by Mike</title>
		<link>http://griffinm.wordpress.com/2009/05/26/containable-in-cakephp/#comment-742</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Wed, 03 Jun 2009 15:19:45 +0000</pubDate>
		<guid isPermaLink="false">http://griffinm.wordpress.com/?p=34#comment-742</guid>
		<description>What I would actually need in this situation is:
$user = $this-&gt;User-&gt;find(&#039;first&#039;, array(
&#039;conditions&#039; =&gt; array(
&#039;User.id&#039; =&gt; 1
),
&#039;contain&#039; =&gt; array(
&#039;Club.name&#039; =&gt; array(
&#039;County.name&#039;
)));

This would then give me the User, their Club and their County from different tables.</description>
		<content:encoded><![CDATA[<p>What I would actually need in this situation is:<br />
$user = $this-&gt;User-&gt;find(&#8216;first&#8217;, array(<br />
&#8216;conditions&#8217; =&gt; array(<br />
&#8216;User.id&#8217; =&gt; 1<br />
),<br />
&#8216;contain&#8217; =&gt; array(<br />
&#8216;Club.name&#8217; =&gt; array(<br />
&#8216;County.name&#8217;<br />
)));</p>
<p>This would then give me the User, their Club and their County from different tables.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Containable in CakePHP by skiedr</title>
		<link>http://griffinm.wordpress.com/2009/05/26/containable-in-cakephp/#comment-741</link>
		<dc:creator>skiedr</dc:creator>
		<pubDate>Thu, 28 May 2009 20:10:30 +0000</pubDate>
		<guid isPermaLink="false">http://griffinm.wordpress.com/?p=34#comment-741</guid>
		<description>or even shotter

#  $user = $this-&gt;User-&gt;find(&#039;first&#039;, array(  
#             &#039;conditions&#039; =&gt; array(  
#                 &#039;User.id&#039; =&gt; 1  
#             ),  
#             &#039;contain&#039; =&gt; array(&#039;Club.Country&#039;)
#         ));</description>
		<content:encoded><![CDATA[<p>or even shotter</p>
<p>#  $user = $this-&gt;User-&gt;find(&#8216;first&#8217;, array(<br />
#             &#8216;conditions&#8217; =&gt; array(<br />
#                 &#8216;User.id&#8217; =&gt; 1<br />
#             ),<br />
#             &#8216;contain&#8217; =&gt; array(&#8216;Club.Country&#8217;)<br />
#         ));</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Containable in CakePHP by Abba Bryant</title>
		<link>http://griffinm.wordpress.com/2009/05/26/containable-in-cakephp/#comment-740</link>
		<dc:creator>Abba Bryant</dc:creator>
		<pubDate>Tue, 26 May 2009 21:12:32 +0000</pubDate>
		<guid isPermaLink="false">http://griffinm.wordpress.com/?p=34#comment-740</guid>
		<description>$this-&gt;User-&gt;contain(array(
            &#039;Club&#039; =&gt; array(
                &#039;County&#039;
            )
        ));
        $user = $this-&gt;User-&gt;find(&#039;first&#039;, array(
            &#039;conditions&#039; =&gt; array(
                &#039;User.id&#039; =&gt; 1
            ),
        ));

can be rewritten also as

        $user = $this-&gt;User-&gt;find(
            &#039;first&#039;, array(
                &#039;contain =&gt; array(
                    &#039;Club&#039; =&gt; array(
                        &#039;County&#039;
                    ),
                ),
                &#039;conditions&#039; =&gt; array(
                    &#039;User.id&#039; =&gt; 1
                ),
            )
        );</description>
		<content:encoded><![CDATA[<p>$this-&gt;User-&gt;contain(array(<br />
            &#8216;Club&#8217; =&gt; array(<br />
                &#8216;County&#8217;<br />
            )<br />
        ));<br />
        $user = $this-&gt;User-&gt;find(&#8216;first&#8217;, array(<br />
            &#8216;conditions&#8217; =&gt; array(<br />
                &#8216;User.id&#8217; =&gt; 1<br />
            ),<br />
        ));</p>
<p>can be rewritten also as</p>
<p>        $user = $this-&gt;User-&gt;find(<br />
            &#8216;first&#8217;, array(<br />
                &#8216;contain =&gt; array(<br />
                    &#8216;Club&#8217; =&gt; array(<br />
                        &#8216;County&#8217;<br />
                    ),<br />
                ),<br />
                &#8216;conditions&#8217; =&gt; array(<br />
                    &#8216;User.id&#8217; =&gt; 1<br />
                ),<br />
            )<br />
        );</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using unBindModel() in CakePHP by Containable in CakePHP &#171; CakePHP findings</title>
		<link>http://griffinm.wordpress.com/2007/06/15/using-unbindmodel-in-cakephp/#comment-739</link>
		<dc:creator>Containable in CakePHP &#171; CakePHP findings</dc:creator>
		<pubDate>Tue, 26 May 2009 14:31:22 +0000</pubDate>
		<guid isPermaLink="false">http://griffinm.wordpress.com/2007/06/15/using-unbindmodel-in-cakephp/#comment-739</guid>
		<description>[...]    Containable in&#160;CakePHP May 26, 2009   I&#8217;ve see a lot of traffic to my post about Using unBindModel in CakePHP and while it is a way of cutting down the data that is returned from a query, there is now a better [...]</description>
		<content:encoded><![CDATA[<p>[...]    Containable in&nbsp;CakePHP May 26, 2009   I&#8217;ve see a lot of traffic to my post about Using unBindModel in CakePHP and while it is a way of cutting down the data that is returned from a query, there is now a better [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to login and then redirect to the last page that was looked at by Mike</title>
		<link>http://griffinm.wordpress.com/2007/05/28/how-to-login-and-then-redirect-to-the-last-page-that-was-looked-at/#comment-737</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Sat, 16 May 2009 10:44:16 +0000</pubDate>
		<guid isPermaLink="false">http://griffinm.wordpress.com/2007/05/28/how-to-login-and-then-redirect-to-the-last-page-that-was-looked-at/#comment-737</guid>
		<description>Nice idea, I&#039;ll keep that in mind for the next time. Thanks!</description>
		<content:encoded><![CDATA[<p>Nice idea, I&#8217;ll keep that in mind for the next time. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to login and then redirect to the last page that was looked at by Claudiu</title>
		<link>http://griffinm.wordpress.com/2007/05/28/how-to-login-and-then-redirect-to-the-last-page-that-was-looked-at/#comment-736</link>
		<dc:creator>Claudiu</dc:creator>
		<pubDate>Sat, 16 May 2009 09:55:39 +0000</pubDate>
		<guid isPermaLink="false">http://griffinm.wordpress.com/2007/05/28/how-to-login-and-then-redirect-to-the-last-page-that-was-looked-at/#comment-736</guid>
		<description>Hello,

Another solution would be to use the Controller::referer() you can just add it in the login function , no need to put anything in the app_controller.

function login() {
if(!$this-&gt;Session-&gt;check(&#039;login_referrer&#039;)) {
$refer = Controller::referer();
$this-&gt;Session-&gt;write(&#039;login_referrer&#039;,$refer);

}
}</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>Another solution would be to use the Controller::referer() you can just add it in the login function , no need to put anything in the app_controller.</p>
<p>function login() {<br />
if(!$this-&gt;Session-&gt;check(&#8216;login_referrer&#8217;)) {<br />
$refer = Controller::referer();<br />
$this-&gt;Session-&gt;write(&#8216;login_referrer&#8217;,$refer);</p>
<p>}<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using autocomplete and Scriptaculous by Topcanon powershot sd</title>
		<link>http://griffinm.wordpress.com/2007/06/27/using-autocomplete-and-scriptaculous/#comment-735</link>
		<dc:creator>Topcanon powershot sd</dc:creator>
		<pubDate>Mon, 04 May 2009 11:08:23 +0000</pubDate>
		<guid isPermaLink="false">http://griffinm.wordpress.com/2007/06/27/using-autocomplete-and-scriptaculous/#comment-735</guid>
		<description>It is interested in is present just enoughly. Thank.</description>
		<content:encoded><![CDATA[<p>It is interested in is present just enoughly. Thank.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Leave an empty option at the top of a select element by Mike</title>
		<link>http://griffinm.wordpress.com/2007/06/01/leave-an-empty-option-at-the-top-of-a-select-element/#comment-734</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Sat, 25 Apr 2009 21:16:14 +0000</pubDate>
		<guid isPermaLink="false">http://griffinm.wordpress.com/2007/06/01/leave-an-empty-option-at-the-top-of-a-select-element/#comment-734</guid>
		<description>You can add it into the array() section as such:
$form-&gt;input(&#039;category_id&#039;, array(&#039;onClick&#039; =&gt; &#039;javascript_call()&#039;))</description>
		<content:encoded><![CDATA[<p>You can add it into the array() section as such:<br />
$form-&gt;input(&#8216;category_id&#8217;, array(&#8216;onClick&#8217; =&gt; &#8216;javascript_call()&#8217;))</p>
]]></content:encoded>
	</item>
</channel>
</rss>
