<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Mohammad Emran Hasan - Latest Comments in Code Updates (HTTP class, Extended CodeIgniter Model, Cross-domain AJAX transport)</title><link>http://phpfour.disqus.com/</link><description>This is Emran Hasan's blog for PHP, CSS, XHTML, JavaScript, Web 2.0, AJAX, Usability, and Web Standards related views, ideas, and sharing.</description><atom:link href="https://phpfour.disqus.com/code_updates_http_class_extended_codeigniter_model_cross_domain_ajax_transport/latest.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Sat, 24 Mar 2012 15:14:02 -0000</lastBuildDate><item><title>Re: Code Updates (HTTP class, Extended CodeIgniter Model, Cross-domain AJAX transport)</title><link>http://phpfour.com/updated-http-class-extended-model-codeigniter-cross-domain-ajax-php/#comment-591409080</link><description>&lt;p&gt;There are better solutions for this problem, for example JSONP. Consider using them as this is pretty old technique. Thanks for your interest though.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mohammad Emran Hasan</dc:creator><pubDate>Sat, 24 Mar 2012 15:14:02 -0000</pubDate></item><item><title>Re: Code Updates (HTTP class, Extended CodeIgniter Model, Cross-domain AJAX transport)</title><link>http://phpfour.com/updated-http-class-extended-model-codeigniter-cross-domain-ajax-php/#comment-591409076</link><description>&lt;p&gt;The download link for transport.php seems to have disappeared, and all links just lead back to the same page.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mikkel</dc:creator><pubDate>Mon, 16 Jan 2012 13:40:24 -0000</pubDate></item><item><title>Re: Code Updates (HTTP class, Extended CodeIgniter Model, Cross-domain AJAX transport)</title><link>http://phpfour.com/updated-http-class-extended-model-codeigniter-cross-domain-ajax-php/#comment-591409070</link><description>&lt;p&gt;North2Alaska&lt;/p&gt;&lt;p&gt;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 "function MY_Model()" 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.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jonathan</dc:creator><pubDate>Thu, 09 Sep 2010 05:36:17 -0000</pubDate></item><item><title>Re: Code Updates (HTTP class, Extended CodeIgniter Model, Cross-domain AJAX transport)</title><link>http://phpfour.com/updated-http-class-extended-model-codeigniter-cross-domain-ajax-php/#comment-591409067</link><description>&lt;p&gt;Thanks for this library! It helped me very much :-)&lt;br&gt;There was problems with cookie transfer, but I replaced this line:&lt;br&gt;&lt;code&gt;$cookieString = join('&amp;amp;', $tempString);&lt;/code&gt;&lt;br&gt;with this:&lt;br&gt;&lt;code&gt;$cookieString = join('; ', $tempString);&lt;/code&gt;&lt;br&gt;and it worked for me.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Prevolution</dc:creator><pubDate>Thu, 22 Jul 2010 18:02:13 -0000</pubDate></item><item><title>Re: Code Updates (HTTP class, Extended CodeIgniter Model, Cross-domain AJAX transport)</title><link>http://phpfour.com/updated-http-class-extended-model-codeigniter-cross-domain-ajax-php/#comment-591409065</link><description>&lt;p&gt;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&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mohammad Emran Hasan</dc:creator><pubDate>Tue, 22 Sep 2009 03:36:02 -0000</pubDate></item><item><title>Re: Code Updates (HTTP class, Extended CodeIgniter Model, Cross-domain AJAX transport)</title><link>http://phpfour.com/updated-http-class-extended-model-codeigniter-cross-domain-ajax-php/#comment-17104364</link><description>&lt;p&gt;Hi Ron,&lt;/p&gt;&lt;p&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;/p&gt;&lt;p&gt;Glad this is helping you!&lt;/p&gt;&lt;p&gt;Emran&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mohammad Emran Hasan</dc:creator><pubDate>Tue, 22 Sep 2009 01:36:02 -0000</pubDate></item><item><title>Re: Code Updates (HTTP class, Extended CodeIgniter Model, Cross-domain AJAX transport)</title><link>http://phpfour.com/updated-http-class-extended-model-codeigniter-cross-domain-ajax-php/#comment-591409060</link><description>&lt;p&gt;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 &amp;amp;#39products&amp;amp;#39 and another called &amp;amp;#39images&amp;amp;#39, where product image names are stored in the images table. How would you do the combine and throw in a condition?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ron</dc:creator><pubDate>Mon, 21 Sep 2009 20:44:33 -0000</pubDate></item><item><title>Re: Code Updates (HTTP class, Extended CodeIgniter Model, Cross-domain AJAX transport)</title><link>http://phpfour.com/updated-http-class-extended-model-codeigniter-cross-domain-ajax-php/#comment-17067139</link><description>&lt;p&gt;Hi Emran,&lt;/p&gt;&lt;p&gt;Great job on this! I was testing it out and it worked perfectly.&lt;/p&gt;&lt;p&gt;One thing though--is it possible to join tables with this? For example, if you have two tables such as 'products' and another called 'images', where product image names are stored in the images table. How would you do the combine and throw in a condition?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ron</dc:creator><pubDate>Mon, 21 Sep 2009 18:44:33 -0000</pubDate></item><item><title>Re: Code Updates (HTTP class, Extended CodeIgniter Model, Cross-domain AJAX transport)</title><link>http://phpfour.com/updated-http-class-extended-model-codeigniter-cross-domain-ajax-php/#comment-591409052</link><description>&lt;p&gt;On line 123 of the My_Models.php file, shouldn&amp;amp;#39t the constructor by My_Model instead of just Model?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">North2Alaska</dc:creator><pubDate>Sat, 23 May 2009 09:18:50 -0000</pubDate></item><item><title>Re: Code Updates (HTTP class, Extended CodeIgniter Model, Cross-domain AJAX transport)</title><link>http://phpfour.com/updated-http-class-extended-model-codeigniter-cross-domain-ajax-php/#comment-9823276</link><description>&lt;p&gt;On line 123 of the My_Models.php file, shouldn't the constructor by My_Model instead of just Model?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">North2Alaska</dc:creator><pubDate>Sat, 23 May 2009 07:18:50 -0000</pubDate></item><item><title>Re: Code Updates (HTTP class, Extended CodeIgniter Model, Cross-domain AJAX transport)</title><link>http://phpfour.com/updated-http-class-extended-model-codeigniter-cross-domain-ajax-php/#comment-591409047</link><description>&lt;p&gt;Nice job...&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">$@!ful</dc:creator><pubDate>Tue, 10 Mar 2009 00:00:59 -0000</pubDate></item><item><title>Re: Code Updates (HTTP class, Extended CodeIgniter Model, Cross-domain AJAX transport)</title><link>http://phpfour.com/updated-http-class-extended-model-codeigniter-cross-domain-ajax-php/#comment-7049551</link><description>&lt;p&gt;Nice job...&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">$@!ful</dc:creator><pubDate>Mon, 09 Mar 2009 22:00:59 -0000</pubDate></item><item><title>Re: Code Updates (HTTP class, Extended CodeIgniter Model, Cross-domain AJAX transport)</title><link>http://phpfour.com/updated-http-class-extended-model-codeigniter-cross-domain-ajax-php/#comment-591409039</link><description>&lt;p&gt;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.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mike</dc:creator><pubDate>Sat, 28 Feb 2009 08:49:07 -0000</pubDate></item><item><title>Re: Code Updates (HTTP class, Extended CodeIgniter Model, Cross-domain AJAX transport)</title><link>http://phpfour.com/updated-http-class-extended-model-codeigniter-cross-domain-ajax-php/#comment-6721744</link><description>&lt;p&gt;Emran, thanks for making this available.&lt;/p&gt;&lt;p&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;/p&gt;&lt;p&gt;Thanks.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mike</dc:creator><pubDate>Sat, 28 Feb 2009 06:49:07 -0000</pubDate></item><item><title>Re: Code Updates (HTTP class, Extended CodeIgniter Model, Cross-domain AJAX transport)</title><link>http://phpfour.com/updated-http-class-extended-model-codeigniter-cross-domain-ajax-php/#comment-591409036</link><description>&lt;p&gt;I&amp;amp;#39ve 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-&amp;gt;findAll($conditions, &amp;amp;#39COUNT(*) AS count&amp;amp;#39, null, 0, 1);&lt;br&gt;&lt;br&gt;		if ($data)&lt;br&gt;		{&lt;br&gt;		        return $data[0][&amp;amp;#39count&amp;amp;#39];&lt;br&gt;		}&lt;br&gt;&lt;br&gt;to this:&lt;br&gt;&lt;br&gt;		$data = $this-&amp;gt;findAll($conditions, &amp;amp;#39COUNT(*) AS count&amp;amp;#39, null, 0, 1);&lt;br&gt;&lt;br&gt;		if ($data)&lt;br&gt;		{//fixed by starrynighthn&lt;br&gt;			if ($this-&amp;gt;returnArray)&lt;br&gt;				return $data[0][&amp;amp;#39count&amp;amp;#39];&lt;br&gt;			else &lt;br&gt;				return $data[0]-&amp;gt;count;&lt;br&gt;		}&lt;br&gt;&lt;br&gt;and everything works well.&lt;br&gt;Hope you fix this bug. ;)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">starrynighthn</dc:creator><pubDate>Sat, 28 Feb 2009 00:37:17 -0000</pubDate></item><item><title>Re: Code Updates (HTTP class, Extended CodeIgniter Model, Cross-domain AJAX transport)</title><link>http://phpfour.com/updated-http-class-extended-model-codeigniter-cross-domain-ajax-php/#comment-6717937</link><description>&lt;p&gt;I've found 1 bug in MY_Model:&lt;/p&gt;&lt;p&gt;When I use $returnArray = FALSE, findCount() got error. So I changed this code:&lt;/p&gt;&lt;p&gt;		$data = $this-&amp;gt;findAll($conditions, 'COUNT(*) AS count', null, 0, 1);&lt;/p&gt;&lt;p&gt;		if ($data)&lt;br&gt;		{&lt;br&gt;		        return $data[0]['count'];&lt;br&gt;		}&lt;/p&gt;&lt;p&gt;to this:&lt;/p&gt;&lt;p&gt;		$data = $this-&amp;gt;findAll($conditions, 'COUNT(*) AS count', null, 0, 1);&lt;/p&gt;&lt;p&gt;		if ($data)&lt;br&gt;		{//fixed by starrynighthn&lt;br&gt;			if ($this-&amp;gt;returnArray)&lt;br&gt;				return $data[0]['count'];&lt;br&gt;			else &lt;br&gt;				return $data[0]-&amp;gt;count;&lt;br&gt;		}&lt;/p&gt;&lt;p&gt;and everything works well.&lt;br&gt;Hope you fix this bug. ;)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">starrynighthn</dc:creator><pubDate>Fri, 27 Feb 2009 22:37:17 -0000</pubDate></item><item><title>Re: Code Updates (HTTP class, Extended CodeIgniter Model, Cross-domain AJAX transport)</title><link>http://phpfour.com/updated-http-class-extended-model-codeigniter-cross-domain-ajax-php/#comment-591409033</link><description>&lt;p&gt;very good&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">g</dc:creator><pubDate>Thu, 26 Feb 2009 01:13:01 -0000</pubDate></item><item><title>Re: Code Updates (HTTP class, Extended CodeIgniter Model, Cross-domain AJAX transport)</title><link>http://phpfour.com/updated-http-class-extended-model-codeigniter-cross-domain-ajax-php/#comment-6632084</link><description>&lt;p&gt;very good&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">g</dc:creator><pubDate>Wed, 25 Feb 2009 23:13:01 -0000</pubDate></item><item><title>Re: Code Updates (HTTP class, Extended CodeIgniter Model, Cross-domain AJAX transport)</title><link>http://phpfour.com/updated-http-class-extended-model-codeigniter-cross-domain-ajax-php/#comment-591409016</link><description>&lt;p&gt;Hi Emran,&lt;br&gt;&lt;br&gt;Many thanks for these excellent classes!&lt;br&gt;&lt;br&gt;I&amp;amp;#39ve used the Extended Model class in a recent project and it saved me so much time in not having to create the simple Models just to do basic insert, save, findAll etc. Great work!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">$1914876</dc:creator><pubDate>Thu, 19 Feb 2009 22:27:15 -0000</pubDate></item><item><title>Re: Code Updates (HTTP class, Extended CodeIgniter Model, Cross-domain AJAX transport)</title><link>http://phpfour.com/updated-http-class-extended-model-codeigniter-cross-domain-ajax-php/#comment-6420260</link><description>&lt;p&gt;Hi Emran,&lt;/p&gt;&lt;p&gt;Many thanks for these excellent classes!&lt;/p&gt;&lt;p&gt;I've used the Extended Model class in a recent project and it saved me so much time in not having to create the simple Models just to do basic insert, save, findAll etc. Great work!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">$1914876</dc:creator><pubDate>Thu, 19 Feb 2009 20:27:15 -0000</pubDate></item></channel></rss>