<?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 Models and requestAction</title>
	<atom:link href="http://beyondthewheel.com/cakephp-models-and-requestaction/feed/" rel="self" type="application/rss+xml" />
	<link>http://beyondthewheel.com/cakephp-models-and-requestaction/</link>
	<description>Web Development</description>
	<lastBuildDate>Thu, 13 May 2010 12:35:08 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Nik Chankov</title>
		<link>http://beyondthewheel.com/cakephp-models-and-requestaction/comment-page-1/#comment-15</link>
		<dc:creator>Nik Chankov</dc:creator>
		<pubDate>Sat, 17 Oct 2009 17:08:01 +0000</pubDate>
		<guid isPermaLink="false">http://beyondthewheel.com/?p=33#comment-15</guid>
		<description>I would say that requestAction is to process the controller&#039;s action, or even to render the view.

In the book.cakephp.org was  written this:
[quote]This function calls a controller&#039;s action from any location and returns data from the action.
You can use requestAction() to retrieve a fully rendered view by passing &#039;return&#039; in the options: requestAction($url, array(&#039;return&#039;));
[/quote]

So I would say calling using $uses is the better way. Another way is to use App::import(&#039;Model&#039;, &#039;ModelName&#039;) or is the model has relation with the current model to use it with $this-&gt;CurrentModel-&gt;OtherRelatedModel-&gt;find()

Hope that helps :)</description>
		<content:encoded><![CDATA[<p>I would say that requestAction is to process the controller&#8217;s action, or even to render the view.</p>
<p>In the book.cakephp.org was  written this:<br />
[quote]This function calls a controller&#8217;s action from any location and returns data from the action.<br />
You can use requestAction() to retrieve a fully rendered view by passing &#8216;return&#8217; in the options: requestAction($url, array(&#8216;return&#8217;));<br />
[/quote]</p>
<p>So I would say calling using $uses is the better way. Another way is to use App::import(&#8216;Model&#8217;, &#8216;ModelName&#8217;) or is the model has relation with the current model to use it with $this-&gt;CurrentModel-&gt;OtherRelatedModel-&gt;find()</p>
<p>Hope that helps <img src='http://beyondthewheel.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>
