<?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: Code Updates (HTTP class, Extended CodeIgniter Model, Cross-domain AJAX transport)</title>
	<atom:link href="http://phpfour.com/blog/2009/02/updated-http-class-extended-model-codeigniter-cross-domain-ajax-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://phpfour.com/blog/2009/02/updated-http-class-extended-model-codeigniter-cross-domain-ajax-php/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=updated-http-class-extended-model-codeigniter-cross-domain-ajax-php</link>
	<description>The everyday sharing of Emran Hasan on software development.</description>
	<lastBuildDate>Wed, 25 Jan 2012 15:11:02 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Custom CodeIgniter Model Class &#124; Zach Flower</title>
		<link>http://phpfour.com/blog/2009/02/updated-http-class-extended-model-codeigniter-cross-domain-ajax-php/#comment-38270</link>
		<dc:creator>Custom CodeIgniter Model Class &#124; Zach Flower</dc:creator>
		<pubDate>Fri, 09 Dec 2011 03:24:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpfour.com/blog/?p=186#comment-38270</guid>
		<description>[...] December 8, 2011 &#124; PHP &#124; 0 Comments    For the past year, I have been an adamant CodeIgniter developer. The one thing that I have found lacking, however, is CodeIgniter&#8217;s model class. I am a big fan of the simplicity of CakePHP&#8217;s ORM structure, and wrote this model class to (slightly) mimic it. Some of the functionality in this extended model is inspired by Emran Hasan&#8217;s CodeIgniter Extended Model Class. [...]</description>
		<content:encoded><![CDATA[<p>[...] December 8, 2011 | PHP | 0 Comments    For the past year, I have been an adamant CodeIgniter developer. The one thing that I have found lacking, however, is CodeIgniter&#8217;s model class. I am a big fan of the simplicity of CakePHP&#8217;s ORM structure, and wrote this model class to (slightly) mimic it. Some of the functionality in this extended model is inspired by Emran Hasan&#8217;s CodeIgniter Extended Model Class. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan</title>
		<link>http://phpfour.com/blog/2009/02/updated-http-class-extended-model-codeigniter-cross-domain-ajax-php/#comment-785</link>
		<dc:creator>Jonathan</dc:creator>
		<pubDate>Thu, 09 Sep 2010 05:36:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpfour.com/blog/?p=186#comment-785</guid>
		<description>North2Alaska

On line 123 it is correct the way it is with Model.  The class itself is already extended with MY_Model extends Model therefore the function Model() within the MY_Model class in MY_Model.php is replacing the function Model() in the original Model.php, and since there is no MY_Model function in the original Model.php, if you changed line 123 to &quot;function MY_Model()&quot; the the Model() function would not be overridden, but instead it would use the original Model() function from Model.php which defeats the purpose of having a class override.</description>
		<content:encoded><![CDATA[<p>North2Alaska</p>
<p>On line 123 it is correct the way it is with Model.  The class itself is already extended with MY_Model extends Model therefore the function Model() within the MY_Model class in MY_Model.php is replacing the function Model() in the original Model.php, and since there is no MY_Model function in the original Model.php, if you changed line 123 to &#8220;function MY_Model()&#8221; the the Model() function would not be overridden, but instead it would use the original Model() function from Model.php which defeats the purpose of having a class override.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Prevolution</title>
		<link>http://phpfour.com/blog/2009/02/updated-http-class-extended-model-codeigniter-cross-domain-ajax-php/#comment-784</link>
		<dc:creator>Prevolution</dc:creator>
		<pubDate>Thu, 22 Jul 2010 18:02:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpfour.com/blog/?p=186#comment-784</guid>
		<description>Thanks for this library! It helped me very much :-)
There was problems with cookie transfer, but I replaced this line:
&lt;code&gt;$cookieString = join(&#039;&amp;&#039;, $tempString);&lt;/code&gt;
with this:
&lt;code&gt;$cookieString = join(&#039;; &#039;, $tempString);&lt;/code&gt;
and it worked for me.</description>
		<content:encoded><![CDATA[<p>Thanks for this library! It helped me very much <img src='http://phpfour.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /><br />
There was problems with cookie transfer, but I replaced this line:</p>
<div class="codecolorer-container text blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$cookieString = join('&amp;amp;', $tempString);</div></div>
<p>with this:</p>
<div class="codecolorer-container text blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$cookieString = join('; ', $tempString);</div></div>
<p>and it worked for me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Md Emran Hasan (phpfour)</title>
		<link>http://phpfour.com/blog/2009/02/updated-http-class-extended-model-codeigniter-cross-domain-ajax-php/#comment-783</link>
		<dc:creator>Md Emran Hasan (phpfour)</dc:creator>
		<pubDate>Tue, 22 Sep 2009 03:36:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpfour.com/blog/?p=186#comment-783</guid>
		<description>Hi Ron,&lt;br&gt;&lt;br&gt;At this moment JOIN is not supported within this class. The purpose of this&lt;br&gt;class is to assist with most regular DB operation, not the complex ones. I&lt;br&gt;believe when using JOIN, the query should be hand-written with proper&lt;br&gt;ordering etc.&lt;br&gt;&lt;br&gt;Glad this is helping you!&lt;br&gt;&lt;br&gt;Emran</description>
		<content:encoded><![CDATA[<p>Hi Ron,</p>
<p>At this moment JOIN is not supported within this class. The purpose of this<br />class is to assist with most regular DB operation, not the complex ones. I<br />believe when using JOIN, the query should be hand-written with proper<br />ordering etc.</p>
<p>Glad this is helping you!</p>
<p>Emran</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ron</title>
		<link>http://phpfour.com/blog/2009/02/updated-http-class-extended-model-codeigniter-cross-domain-ajax-php/#comment-782</link>
		<dc:creator>Ron</dc:creator>
		<pubDate>Mon, 21 Sep 2009 20:44:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpfour.com/blog/?p=186#comment-782</guid>
		<description>Hi Emran,&lt;br&gt;&lt;br&gt;Great job on this! I was testing it out and it worked perfectly.&lt;br&gt;&lt;br&gt;One thing though--is it possible to join tables with this? For example, if you have two tables such as &#039;products&#039; and another called &#039;images&#039;, where product image names are stored in the images table. How would you do the combine and throw in a condition?</description>
		<content:encoded><![CDATA[<p>Hi Emran,</p>
<p>Great job on this! I was testing it out and it worked perfectly.</p>
<p>One thing though&#8211;is it possible to join tables with this? For example, if you have two tables such as &#39;products&#39; and another called &#39;images&#39;, where product image names are stored in the images table. How would you do the combine and throw in a condition?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: North2Alaska</title>
		<link>http://phpfour.com/blog/2009/02/updated-http-class-extended-model-codeigniter-cross-domain-ajax-php/#comment-781</link>
		<dc:creator>North2Alaska</dc:creator>
		<pubDate>Sat, 23 May 2009 09:18:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpfour.com/blog/?p=186#comment-781</guid>
		<description>On line 123 of the My_Models.php file, shouldn&#039;t the constructor by My_Model instead of just Model?</description>
		<content:encoded><![CDATA[<p>On line 123 of the My_Models.php file, shouldn&#39;t the constructor by My_Model instead of just Model?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: $@!ful</title>
		<link>http://phpfour.com/blog/2009/02/updated-http-class-extended-model-codeigniter-cross-domain-ajax-php/#comment-780</link>
		<dc:creator>$@!ful</dc:creator>
		<pubDate>Tue, 10 Mar 2009 00:00:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpfour.com/blog/?p=186#comment-780</guid>
		<description>Nice job...</description>
		<content:encoded><![CDATA[<p>Nice job&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://phpfour.com/blog/2009/02/updated-http-class-extended-model-codeigniter-cross-domain-ajax-php/#comment-779</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Sat, 28 Feb 2009 08:49:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpfour.com/blog/?p=186#comment-779</guid>
		<description>Emran, thanks for making this available.&lt;br&gt;&lt;br&gt;I was wondering if you could post some sample code showing how you generally use the extended model, specifically when creating a new record.&lt;br&gt;&lt;br&gt;Thanks.</description>
		<content:encoded><![CDATA[<p>Emran, thanks for making this available.</p>
<p>I was wondering if you could post some sample code showing how you generally use the extended model, specifically when creating a new record.</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: starrynighthn</title>
		<link>http://phpfour.com/blog/2009/02/updated-http-class-extended-model-codeigniter-cross-domain-ajax-php/#comment-778</link>
		<dc:creator>starrynighthn</dc:creator>
		<pubDate>Sat, 28 Feb 2009 00:37:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpfour.com/blog/?p=186#comment-778</guid>
		<description>I&#039;ve found 1 bug in MY_Model:&lt;br&gt;&lt;br&gt;When I use $returnArray = FALSE, findCount() got error. So I changed this code:&lt;br&gt;&lt;br&gt;		$data = $this-&gt;findAll($conditions, &#039;COUNT(*) AS count&#039;, null, 0, 1);&lt;br&gt;&lt;br&gt;		if ($data)&lt;br&gt;		{&lt;br&gt;		        return $data[0][&#039;count&#039;];&lt;br&gt;		}&lt;br&gt;&lt;br&gt;to this:&lt;br&gt;&lt;br&gt;		$data = $this-&gt;findAll($conditions, &#039;COUNT(*) AS count&#039;, null, 0, 1);&lt;br&gt;&lt;br&gt;		if ($data)&lt;br&gt;		{//fixed by starrynighthn&lt;br&gt;			if ($this-&gt;returnArray)&lt;br&gt;				return $data[0][&#039;count&#039;];&lt;br&gt;			else &lt;br&gt;				return $data[0]-&gt;count;&lt;br&gt;		}&lt;br&gt;&lt;br&gt;and everything works well.&lt;br&gt;Hope you fix this bug. ;)</description>
		<content:encoded><![CDATA[<p>I&#39;ve found 1 bug in MY_Model:</p>
<p>When I use $returnArray = FALSE, findCount() got error. So I changed this code:</p>
<p>		$data = $this-&gt;findAll($conditions, &#39;COUNT(*) AS count&#39;, null, 0, 1);</p>
<p>		if ($data)<br />		{<br />		        return $data[0][&#39;count&#39;];<br />		}</p>
<p>to this:</p>
<p>		$data = $this-&gt;findAll($conditions, &#39;COUNT(*) AS count&#39;, null, 0, 1);</p>
<p>		if ($data)<br />		{//fixed by starrynighthn<br />			if ($this-&gt;returnArray)<br />				return $data[0][&#39;count&#39;];<br />			else <br />				return $data[0]-&gt;count;<br />		}</p>
<p>and everything works well.<br />Hope you fix this bug. <img src='http://phpfour.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: g</title>
		<link>http://phpfour.com/blog/2009/02/updated-http-class-extended-model-codeigniter-cross-domain-ajax-php/#comment-777</link>
		<dc:creator>g</dc:creator>
		<pubDate>Thu, 26 Feb 2009 01:13:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpfour.com/blog/?p=186#comment-777</guid>
		<description>very good</description>
		<content:encoded><![CDATA[<p>very good</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced

Served from: phpfour.com @ 2012-02-07 20:12:44 -->
