<?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>Oracle of ONE1 &#187; cakephp</title>
	<atom:link href="http://dvector.com/oracle/tag/cakephp/feed/" rel="self" type="application/rss+xml" />
	<link>http://dvector.com/oracle</link>
	<description>Obscure words of unity</description>
	<lastBuildDate>Wed, 31 Aug 2011 21:25:43 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Dynamically Load a Model &#8211; CakePHP</title>
		<link>http://dvector.com/oracle/2009/10/20/dynamically-load-a-model-cakephp/</link>
		<comments>http://dvector.com/oracle/2009/10/20/dynamically-load-a-model-cakephp/#comments</comments>
		<pubDate>Tue, 20 Oct 2009 13:54:46 +0000</pubDate>
		<dc:creator>one1</dc:creator>
				<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[cakephp]]></category>

		<guid isPermaLink="false">http://dvector.com/oracle/?p=346</guid>
		<description><![CDATA[Occassionally, I need to load an unrealted model into a controller. There are a number of ways to do this but some are better than others. The following is taken from reply by gwoo to a discussion thread.

App::import() only includes the file. So you would new to create a new instance every time. This is [...]]]></description>
			<content:encoded><![CDATA[<p>Occassionally, I need to load an unrealted model into a controller. There are a number of ways to do this but some are better than others. The following is taken from reply by gwoo to a discussion thread.</p>
<p><span id="more-346"></span></p>
<p>App::import() only includes the file. So you would new to create a new instance every time. This is not recommended</p>
<p>ClassRegistry::init() loads the file, adds the instance to the a object map and returns the instance. This is an easy and convenient way to access models.</p>
<p>Controller::loadModel(); Uses ClassRegistry::init() adds the model to a property of the controller and also allows persistModel to be enabled.</p>
<p>While you &#8220;can&#8221; do any of these things, you should ask yourself why you are creating dependencies on models that are not natural to the controller. If you &#8220;have&#8221; to do use any of these, then I would do so in reverse order of the way i described them. IE, Controller::loadModel() then CR::init() and actually I never use App::import() for models.</p>
]]></content:encoded>
			<wfw:commentRss>http://dvector.com/oracle/2009/10/20/dynamically-load-a-model-cakephp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Overdue Posting</title>
		<link>http://dvector.com/oracle/2009/07/18/overdue-posting/</link>
		<comments>http://dvector.com/oracle/2009/07/18/overdue-posting/#comments</comments>
		<pubDate>Sat, 18 Jul 2009 17:02:49 +0000</pubDate>
		<dc:creator>one1</dc:creator>
				<category><![CDATA[karma]]></category>
		<category><![CDATA[cakephp]]></category>
		<category><![CDATA[politics]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://dvector.com/oracle/?p=263</guid>
		<description><![CDATA[Every now and then, I recommit myself to actually writing something on a regular basis. Ideally, I would like to post once every two weeks. Sometimes this gets hard, especially when real life interrupts. Some upcoming posts to look forward to include:

Discussion of recent State of Wisconsin bills proposed by a joint legislative committee I [...]]]></description>
			<content:encoded><![CDATA[<p>Every now and then, I recommit myself to actually writing something on a regular basis. Ideally, I would like to post once every two weeks. Sometimes this gets hard, especially when real life interrupts. Some upcoming posts to look forward to include:</p>
<ol>
<li>Discussion of recent State of Wisconsin bills proposed by a joint legislative committee I participated on.</li>
<li>Various aspects of a Case Management web application I am working on in cakePHP.</li>
<li>Discussion of a Twitter application, I am developing.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://dvector.com/oracle/2009/07/18/overdue-posting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

