<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Dan Myers &#187; CakePHP</title>
	<atom:link href="http://www.danmyers.name/wp/category/cakephp/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.danmyers.name/wp</link>
	<description>PHP, ActionScript, TorqueScript, Frameworks</description>
	<lastBuildDate>Fri, 27 Aug 2010 12:11:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>How to access Auth info in CakePHP</title>
		<link>http://www.danmyers.name/wp/2009/10/how-to-access-auth-info-in-cakephp/</link>
		<comments>http://www.danmyers.name/wp/2009/10/how-to-access-auth-info-in-cakephp/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 02:19:15 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[CakePHP]]></category>

		<guid isPermaLink="false">http://www.danmyers.name/wp/?p=68</guid>
		<description><![CDATA[I read this somewhere and had it stored in my Yojimbo&#8230; You can use the Session component in controllers and the&#160; session helper in views to detect the login status.&#160; in controllers:&#160; $this-&#62;Session-&#62;check(&#8216;Auth.User.id&#8217;) will return true if the user is&#160; logged, you can also use $this-&#62;Auth-&#62;user(&#8216;id&#8217;).&#160; in views&#160; $session-&#62;check(&#8216;Auth.User.id&#8217;) will tell you if a user [...]]]></description>
			<content:encoded><![CDATA[<p>I read this somewhere and had it stored in my Yojimbo&#8230;</p>
<p>You can use the Session component in controllers and the&nbsp;<br />
session helper in views to detect the login status.&nbsp;</p>
<p>in controllers:&nbsp;</p>
<p>$this-&gt;Session-&gt;check(&#8216;Auth.User.id&#8217;) will return true if the user is&nbsp;<br />
logged, you can also use $this-&gt;Auth-&gt;user(&#8216;id&#8217;).&nbsp;</p>
<p>in views&nbsp;</p>
<p>$session-&gt;check(&#8216;Auth.User.id&#8217;) will tell you if a user is logged, and&nbsp;<br />
you can user $session-&gt;read(&#8216;Auth.User&#8217;) to retrieve the user&#8217;s&nbsp;<br />
information.&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.danmyers.name/wp/2009/10/how-to-access-auth-info-in-cakephp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

