<?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: Including Models inside your Controller</title>
	<atom:link href="http://techno-geeks.org/2009/05/models-inside-controller/feed/" rel="self" type="application/rss+xml" />
	<link>http://techno-geeks.org/2009/05/models-inside-controller/</link>
	<description>A fusion of technology, music, and geekyness.</description>
	<lastBuildDate>Mon, 16 Apr 2012 15:53:55 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: prabha</title>
		<link>http://techno-geeks.org/2009/05/models-inside-controller/comment-page-1/#comment-5001</link>
		<dc:creator>prabha</dc:creator>
		<pubDate>Tue, 19 Jan 2010 19:08:52 +0000</pubDate>
		<guid isPermaLink="false">http://techno-geeks.org/?p=176#comment-5001</guid>
		<description>I have added this in users controller
Controller::loadModel(&#039;User&#039;);

and added the following in Model
function afterSave($created)
{

	$t[&#039;data&#039;] = serialize($this-&gt;data);
	$this-&gt;changes-&gt;save($t);
	return true;
}

when call this in controller i got the following error,
Missing Database Table

Error: Database table Array for model User was not found.

Please help.
Thanks,
Prabhakar</description>
		<content:encoded><![CDATA[<p>I have added this in users controller<br />
Controller::loadModel(&#8216;User&#8217;);</p>
<p>and added the following in Model<br />
function afterSave($created)<br />
{</p>
<p>	$t['data'] = serialize($this-&gt;data);<br />
	$this-&gt;changes-&gt;save($t);<br />
	return true;<br />
}</p>
<p>when call this in controller i got the following error,<br />
Missing Database Table</p>
<p>Error: Database table Array for model User was not found.</p>
<p>Please help.<br />
Thanks,<br />
Prabhakar</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Importer un modèle depuis un contrôleur - Pierre MARTIN</title>
		<link>http://techno-geeks.org/2009/05/models-inside-controller/comment-page-1/#comment-2687</link>
		<dc:creator>Importer un modèle depuis un contrôleur - Pierre MARTIN</dc:creator>
		<pubDate>Wed, 15 Jul 2009 11:06:21 +0000</pubDate>
		<guid isPermaLink="false">http://techno-geeks.org/?p=176#comment-2687</guid>
		<description>[...] article reprend les conseils déjà rabachés à divers endroits en langue anglaise, et également les explications de gwoo sur le Google group anglais&#8230; en essayant de [...]</description>
		<content:encoded><![CDATA[<p>[...] article reprend les conseils déjà rabachés à divers endroits en langue anglaise, et également les explications de gwoo sur le Google group anglais&#8230; en essayant de [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joel Perras</title>
		<link>http://techno-geeks.org/2009/05/models-inside-controller/comment-page-1/#comment-1314</link>
		<dc:creator>Joel Perras</dc:creator>
		<pubDate>Thu, 28 May 2009 00:59:43 +0000</pubDate>
		<guid isPermaLink="false">http://techno-geeks.org/?p=176#comment-1314</guid>
		<description>As is noted in the documentation, Controller::loadModel functions in such a way so that when Controller::$persistModel is set to true, the model you specify will also be persisted. This is the recommended method for loading additional models into a controller, but should only be used when the specified model is otherwise unreachable through normal means (e.g. associations). 

Really, Controller::loadModel is a specialized wrapper for ClassRegistry::init, which is itself a factory-based wrapper for App::import, which is a class-loader wrapper for the PHP native &#039;require&#039; construct. Each additional layer of abstraction performs a slightly different role; it&#039;s up to you to determine which is most appropriate.</description>
		<content:encoded><![CDATA[<p>As is noted in the documentation, Controller::loadModel functions in such a way so that when Controller::$persistModel is set to true, the model you specify will also be persisted. This is the recommended method for loading additional models into a controller, but should only be used when the specified model is otherwise unreachable through normal means (e.g. associations). </p>
<p>Really, Controller::loadModel is a specialized wrapper for ClassRegistry::init, which is itself a factory-based wrapper for App::import, which is a class-loader wrapper for the PHP native &#8216;require&#8217; construct. Each additional layer of abstraction performs a slightly different role; it&#8217;s up to you to determine which is most appropriate.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jesse</title>
		<link>http://techno-geeks.org/2009/05/models-inside-controller/comment-page-1/#comment-1299</link>
		<dc:creator>jesse</dc:creator>
		<pubDate>Wed, 27 May 2009 15:46:52 +0000</pubDate>
		<guid isPermaLink="false">http://techno-geeks.org/?p=176#comment-1299</guid>
		<description>@michas: &quot;Yes the old loadModel() function from basics was deprecated. 
However the loadModel() method in Controller is still used. 
http://api.cakephp.org/class/controller#method-ControllerloadModel&quot;

From the Gwoo man himself</description>
		<content:encoded><![CDATA[<p>@michas: &#8220;Yes the old loadModel() function from basics was deprecated.<br />
However the loadModel() method in Controller is still used.<br />
<a href="http://api.cakephp.org/class/controller#method-ControllerloadModel" rel="nofollow">http://api.cakephp.org/class/controller#method-ControllerloadModel</a>&#8221;</p>
<p>From the Gwoo man himself</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: michas</title>
		<link>http://techno-geeks.org/2009/05/models-inside-controller/comment-page-1/#comment-1298</link>
		<dc:creator>michas</dc:creator>
		<pubDate>Wed, 27 May 2009 15:36:09 +0000</pubDate>
		<guid isPermaLink="false">http://techno-geeks.org/?p=176#comment-1298</guid>
		<description>Controller::loadModel is deprecated.</description>
		<content:encoded><![CDATA[<p>Controller::loadModel is deprecated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jesse</title>
		<link>http://techno-geeks.org/2009/05/models-inside-controller/comment-page-1/#comment-1297</link>
		<dc:creator>jesse</dc:creator>
		<pubDate>Wed, 27 May 2009 15:01:23 +0000</pubDate>
		<guid isPermaLink="false">http://techno-geeks.org/?p=176#comment-1297</guid>
		<description>@Miles J: Cool. Thanks for posting it.</description>
		<content:encoded><![CDATA[<p>@Miles J: Cool. Thanks for posting it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: How to create an &#8220;instance&#8221; of a Class in CakePHP &#171; Myles Kadusale&#8217;s Blog</title>
		<link>http://techno-geeks.org/2009/05/models-inside-controller/comment-page-1/#comment-1287</link>
		<dc:creator>How to create an &#8220;instance&#8221; of a Class in CakePHP &#171; Myles Kadusale&#8217;s Blog</dc:creator>
		<pubDate>Wed, 27 May 2009 09:01:47 +0000</pubDate>
		<guid isPermaLink="false">http://techno-geeks.org/?p=176#comment-1287</guid>
		<description>[...] blog  here discusses more about this [...]</description>
		<content:encoded><![CDATA[<p>[...] blog  here discusses more about this [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Miles J</title>
		<link>http://techno-geeks.org/2009/05/models-inside-controller/comment-page-1/#comment-1276</link>
		<dc:creator>Miles J</dc:creator>
		<pubDate>Wed, 27 May 2009 02:25:19 +0000</pubDate>
		<guid isPermaLink="false">http://techno-geeks.org/?p=176#comment-1276</guid>
		<description>Controller::loadModel(&#039;Car&#039;) can also be $this-&gt;loadModel(&#039;Car&#039;);</description>
		<content:encoded><![CDATA[<p>Controller::loadModel(&#8216;Car&#8217;) can also be $this-&gt;loadModel(&#8216;Car&#8217;);</p>
]]></content:encoded>
	</item>
</channel>
</rss>

