<?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: Extending the native &#8216;Model&#8217; and make it your own.</title>
	<atom:link href="http://www.askaboutphp.com/50/codeigniter-extending-the-native-model-and-make-it-your-own.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.askaboutphp.com/50/codeigniter-extending-the-native-model-and-make-it-your-own.html</link>
	<description></description>
	<lastBuildDate>Mon, 30 Jan 2012 06:32:17 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Salient Digital</title>
		<link>http://www.askaboutphp.com/50/codeigniter-extending-the-native-model-and-make-it-your-own.html/comment-page-1#comment-40918</link>
		<dc:creator>Salient Digital</dc:creator>
		<pubDate>Thu, 09 Jun 2011 16:54:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.askaboutphp.com/?p=50#comment-40918</guid>
		<description>The good news is, this old post has great link authority. Bad news is it&#039;s written for CodeIgniter 1.x. If you want to do the same for CodeIgniter 2.x you do:

class Model_name extends CI_Model {

    function __construct()
    {
        // Call the Model constructor
        parent::__construct();
    }
    
    // other stuff


}

Also, I&#039;ve had good luck &lt;a href=&quot;http://www.highermedia.com/articles/nuts_bolts/codeigniter_base_classes_revisited&quot; rel=&quot;nofollow&quot;&gt;using base classes and base models in CodeIgniter 2&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>The good news is, this old post has great link authority. Bad news is it&#8217;s written for CodeIgniter 1.x. If you want to do the same for CodeIgniter 2.x you do:</p>
<p>class Model_name extends CI_Model {</p>
<p>    function __construct()<br />
    {<br />
        // Call the Model constructor<br />
        parent::__construct();<br />
    }</p>
<p>    // other stuff</p>
<p>}</p>
<p>Also, I&#8217;ve had good luck <a href="http://www.highermedia.com/articles/nuts_bolts/codeigniter_base_classes_revisited" rel="nofollow">using base classes and base models in CodeIgniter 2</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Usama Ahmed</title>
		<link>http://www.askaboutphp.com/50/codeigniter-extending-the-native-model-and-make-it-your-own.html/comment-page-1#comment-24246</link>
		<dc:creator>Usama Ahmed</dc:creator>
		<pubDate>Fri, 27 Aug 2010 04:57:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.askaboutphp.com/?p=50#comment-24246</guid>
		<description>@anon.

Thanks. This worked.
I have a question. What if we don&#039;t want to name our model as &#039;MY_Model&#039;. What if i want my model to be as &#039;MY_User&#039;????</description>
		<content:encoded><![CDATA[<p>@anon.</p>
<p>Thanks. This worked.<br />
I have a question. What if we don&#8217;t want to name our model as &#8216;MY_Model&#8217;. What if i want my model to be as &#8216;MY_User&#8217;????</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: anon</title>
		<link>http://www.askaboutphp.com/50/codeigniter-extending-the-native-model-and-make-it-your-own.html/comment-page-1#comment-22802</link>
		<dc:creator>anon</dc:creator>
		<pubDate>Sun, 11 Jul 2010 16:04:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.askaboutphp.com/?p=50#comment-22802</guid>
		<description>Try this
1. Move My_Model.php from application/libraries to application/model
2. Add My_Model in application/config/autoload.php 
$autoload[&#039;model&#039;] = array(&#039;My_Model&#039;);</description>
		<content:encoded><![CDATA[<p>Try this<br />
1. Move My_Model.php from application/libraries to application/model<br />
2. Add My_Model in application/config/autoload.php<br />
$autoload['model'] = array(&#8216;My_Model&#8217;);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: welson santos</title>
		<link>http://www.askaboutphp.com/50/codeigniter-extending-the-native-model-and-make-it-your-own.html/comment-page-1#comment-13230</link>
		<dc:creator>welson santos</dc:creator>
		<pubDate>Mon, 10 Aug 2009 21:27:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.askaboutphp.com/?p=50#comment-13230</guid>
		<description>hi friend, I tried to make this example and don&#039;t run, I created one file with name MY_Model in folder application/liberies, and last I created other file that extends MY_Model e saved in folder application/models and don&#039;t run

where I wrong ?</description>
		<content:encoded><![CDATA[<p>hi friend, I tried to make this example and don&#8217;t run, I created one file with name MY_Model in folder application/liberies, and last I created other file that extends MY_Model e saved in folder application/models and don&#8217;t run</p>
<p>where I wrong ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard</title>
		<link>http://www.askaboutphp.com/50/codeigniter-extending-the-native-model-and-make-it-your-own.html/comment-page-1#comment-7294</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Wed, 25 Mar 2009 00:03:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.askaboutphp.com/?p=50#comment-7294</guid>
		<description>This is helpful...

I think this kind of thinking is one of the qualities of CI, without being able to extend it as such would mean a far more limited framwork...

After all we are only just playing with standard php classes and objects....

Thanks for the post</description>
		<content:encoded><![CDATA[<p>This is helpful&#8230;</p>
<p>I think this kind of thinking is one of the qualities of CI, without being able to extend it as such would mean a far more limited framwork&#8230;</p>
<p>After all we are only just playing with standard php classes and objects&#8230;.</p>
<p>Thanks for the post</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Md Emran Hasan</title>
		<link>http://www.askaboutphp.com/50/codeigniter-extending-the-native-model-and-make-it-your-own.html/comment-page-1#comment-6404</link>
		<dc:creator>Md Emran Hasan</dc:creator>
		<pubDate>Mon, 23 Feb 2009 16:45:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.askaboutphp.com/?p=50#comment-6404</guid>
		<description>I&#039;m glad the author has pointed to the &quot;Extended Model&quot; solution by me. I&#039;d like to know the readers that there is an updated which does not require you to replace the core library. Have a look:

http://www.phpfour.com/blog/2009/02/updated-http-class-extended-model-codeigniter-cross-domain-ajax-php/

Cheers!</description>
		<content:encoded><![CDATA[<p>I&#8217;m glad the author has pointed to the &#8220;Extended Model&#8221; solution by me. I&#8217;d like to know the readers that there is an updated which does not require you to replace the core library. Have a look:</p>
<p><a href="http://www.phpfour.com/blog/2009/02/updated-http-class-extended-model-codeigniter-cross-domain-ajax-php/" rel="nofollow">http://www.phpfour.com/blog/2009/02/updated-http-class-extended-model-codeigniter-cross-domain-ajax-php/</a></p>
<p>Cheers!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jérôme</title>
		<link>http://www.askaboutphp.com/50/codeigniter-extending-the-native-model-and-make-it-your-own.html/comment-page-1#comment-4509</link>
		<dc:creator>Jérôme</dc:creator>
		<pubDate>Tue, 09 Dec 2008 05:11:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.askaboutphp.com/?p=50#comment-4509</guid>
		<description>Thank you for that! It wasn&#039;t working for me because I was trying to extend CI_Model instead of just Model :)</description>
		<content:encoded><![CDATA[<p>Thank you for that! It wasn&#8217;t working for me because I was trying to extend CI_Model instead of just Model <img src='http://www.askaboutphp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: webmaster</title>
		<link>http://www.askaboutphp.com/50/codeigniter-extending-the-native-model-and-make-it-your-own.html/comment-page-1#comment-3606</link>
		<dc:creator>webmaster</dc:creator>
		<pubDate>Thu, 13 Nov 2008 01:03:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.askaboutphp.com/?p=50#comment-3606</guid>
		<description>hi Jason

I&#039;m just sticking to the convention stated by CodeIgniter. CodeIgniter is written to be compatible with PHP 4. See the CI wiki
http://codeigniter.com/user_guide/overview/at_a_glance.html

Thanks</description>
		<content:encoded><![CDATA[<p>hi Jason</p>
<p>I&#8217;m just sticking to the convention stated by CodeIgniter. CodeIgniter is written to be compatible with PHP 4. See the CI wiki<br />
<a href="http://codeigniter.com/user_guide/overview/at_a_glance.html" rel="nofollow">http://codeigniter.com/user_guide/overview/at_a_glance.html</a></p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://www.askaboutphp.com/50/codeigniter-extending-the-native-model-and-make-it-your-own.html/comment-page-1#comment-3589</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Wed, 12 Nov 2008 19:21:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.askaboutphp.com/?p=50#comment-3589</guid>
		<description>Just a question....
Why the use of Model_name() constructor instead of __construct()?</description>
		<content:encoded><![CDATA[<p>Just a question&#8230;.<br />
Why the use of Model_name() constructor instead of __construct()?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fresh Links November 10th, 2008 &#124; News &#124; Server-Side Magazine</title>
		<link>http://www.askaboutphp.com/50/codeigniter-extending-the-native-model-and-make-it-your-own.html/comment-page-1#comment-3521</link>
		<dc:creator>Fresh Links November 10th, 2008 &#124; News &#124; Server-Side Magazine</dc:creator>
		<pubDate>Mon, 10 Nov 2008 09:07:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.askaboutphp.com/?p=50#comment-3521</guid>
		<description>[...] CodeIgniter: Extending the native ‘Model’ and make it your own [...]</description>
		<content:encoded><![CDATA[<p>[...] CodeIgniter: Extending the native ‘Model’ and make it your own [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

