<?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: CodeIgniter &#8211; Loading Models and Database in One Hit</title>
	<atom:link href="http://www.beyondcoding.com/2009/02/13/codeigniter-loading-models-and-database-in-one-hit/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.beyondcoding.com/2009/02/13/codeigniter-loading-models-and-database-in-one-hit/</link>
	<description>Follow us on Twitter: @fredwu and @scotti3g</description>
	<lastBuildDate>Mon, 30 Jan 2012 19:22:13 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Scott Gruer</title>
		<link>http://www.beyondcoding.com/2009/02/13/codeigniter-loading-models-and-database-in-one-hit/comment-page-1/#comment-4482</link>
		<dc:creator>Scott Gruer</dc:creator>
		<pubDate>Mon, 16 Feb 2009 08:06:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.beyondcoding.com/?p=91#comment-4482</guid>
		<description>&lt;strong&gt;@Sam&lt;/strong&gt; - Lazy connecting to DB? :) The standard $this-&gt;load-&gt;database() is still pretty easy for the lazy people hehe ;) Or simply putting the database class in the autoload part of the config.

&lt;strong&gt;@Colin&lt;/strong&gt; - My bad.. you&#039;re right about the dashes in the pseudo model names. I&#039;ll change them to underscores right away. Thanks! :)

&lt;strong&gt;@Rob G&lt;/strong&gt; - Using the pseudo names to shorten long names is very valid. In my latest project I took care of that issue by having some very generic reusable models/classes, then created instances of those classes (at which point shorter names could be introduced).</description>
		<content:encoded><![CDATA[<p><strong>@Sam</strong> &#8211; Lazy connecting to DB? :) The standard $this->load->database() is still pretty easy for the lazy people hehe ;) Or simply putting the database class in the autoload part of the config.</p>
<p><strong>@Colin</strong> &#8211; My bad.. you&#8217;re right about the dashes in the pseudo model names. I&#8217;ll change them to underscores right away. Thanks! :)</p>
<p><strong>@Rob G</strong> &#8211; Using the pseudo names to shorten long names is very valid. In my latest project I took care of that issue by having some very generic reusable models/classes, then created instances of those classes (at which point shorter names could be introduced).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob G</title>
		<link>http://www.beyondcoding.com/2009/02/13/codeigniter-loading-models-and-database-in-one-hit/comment-page-1/#comment-4404</link>
		<dc:creator>Rob G</dc:creator>
		<pubDate>Sat, 14 Feb 2009 04:58:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.beyondcoding.com/?p=91#comment-4404</guid>
		<description>I use the pseudo name quite a bit mostly because the model names are sometimes fairly long and I like to use a shortened version when working with them.

Either that or you just sometimes run into common name variable issues and its good to customize a bit more in the code. Still good practice to name it something close though to the model name.</description>
		<content:encoded><![CDATA[<p>I use the pseudo name quite a bit mostly because the model names are sometimes fairly long and I like to use a shortened version when working with them.</p>
<p>Either that or you just sometimes run into common name variable issues and its good to customize a bit more in the code. Still good practice to name it something close though to the model name.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Colin</title>
		<link>http://www.beyondcoding.com/2009/02/13/codeigniter-loading-models-and-database-in-one-hit/comment-page-1/#comment-4390</link>
		<dc:creator>Colin</dc:creator>
		<pubDate>Fri, 13 Feb 2009 19:37:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.beyondcoding.com/?p=91#comment-4390</guid>
		<description>Sometimes, in certain controllers, my model name clashes with a local variable, so I have to rename it. The dashes in your pseudo model names is throwing me. No way that would work!</description>
		<content:encoded><![CDATA[<p>Sometimes, in certain controllers, my model name clashes with a local variable, so I have to rename it. The dashes in your pseudo model names is throwing me. No way that would work!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam</title>
		<link>http://www.beyondcoding.com/2009/02/13/codeigniter-loading-models-and-database-in-one-hit/comment-page-1/#comment-4370</link>
		<dc:creator>Sam</dc:creator>
		<pubDate>Fri, 13 Feb 2009 10:38:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.beyondcoding.com/?p=91#comment-4370</guid>
		<description>Actually you can achieve lazy connecting to DB:

$db[&#039;default&#039;][&#039;autoinit&#039;] = FALSE;</description>
		<content:encoded><![CDATA[<p>Actually you can achieve lazy connecting to DB:</p>
<p>$db['default']['autoinit'] = FALSE;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

