<?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: Single Login For Multiple User Types with CakePHP</title>
	<atom:link href="http://blogchuck.com/2010/04/single-login-for-multiple-user-types-with-cakephp/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogchuck.com/2010/04/single-login-for-multiple-user-types-with-cakephp/</link>
	<description>how much blog can blogchuck blog</description>
	<lastBuildDate>Fri, 16 Sep 2011 03:57:04 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Kim Pomares</title>
		<link>http://blogchuck.com/2010/04/single-login-for-multiple-user-types-with-cakephp/comment-page-1/#comment-280</link>
		<dc:creator>Kim Pomares</dc:creator>
		<pubDate>Thu, 12 Aug 2010 21:21:17 +0000</pubDate>
		<guid isPermaLink="false">http://blogchuck.com/?p=326#comment-280</guid>
		<description>Got it!

$queryData[&#039;conditions&#039;][&#039;StaffMember.group_id&#039;] = ‘&gt; 5?;

becomes:

$queryData[&#039;conditions&#039;] = array(&#039;StaffMember.group_id &gt;&#039; =&gt; &#039;5&#039;);

:-)</description>
		<content:encoded><![CDATA[<p>Got it!</p>
<p>$queryData['conditions']['StaffMember.group_id'] = ‘&gt; 5?;</p>
<p>becomes:</p>
<p>$queryData['conditions'] = array(&#8216;StaffMember.group_id &gt;&#8217; =&gt; &#8217;5&#8242;);</p>
<p> <img src='http://blogchuck.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kim Pomares</title>
		<link>http://blogchuck.com/2010/04/single-login-for-multiple-user-types-with-cakephp/comment-page-1/#comment-279</link>
		<dc:creator>Kim Pomares</dc:creator>
		<pubDate>Thu, 12 Aug 2010 21:12:47 +0000</pubDate>
		<guid isPermaLink="false">http://blogchuck.com/?p=326#comment-279</guid>
		<description>So elegant!

My question: I have 4 different types of users: Guests, Members, Staff Members and System Administrators. 

In my StaffMember model, I would like my beforeFind to return Staff members and Administrators.

I amusing [&#039;group_id&#039;] instead of [&#039;type&#039;] in my table, with a groups table and the group names.

$queryData[&#039;conditions&#039;][&#039;StaffMember.group_id&#039;] = &#039;&gt; 5&#039;;

But what I get is all users who have a blank group_id.</description>
		<content:encoded><![CDATA[<p>So elegant!</p>
<p>My question: I have 4 different types of users: Guests, Members, Staff Members and System Administrators. </p>
<p>In my StaffMember model, I would like my beforeFind to return Staff members and Administrators.</p>
<p>I amusing ['group_id'] instead of ['type'] in my table, with a groups table and the group names.</p>
<p>$queryData['conditions']['StaffMember.group_id'] = &#8216;&gt; 5&#8242;;</p>
<p>But what I get is all users who have a blank group_id.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

