<?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 for Sohaib's Blog - A Cake-PHP Web Developer, Pakistan</title>
	<atom:link href="http://blog.sohaibmuneer.com/comments/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.sohaibmuneer.com</link>
	<description>Web Development in Web Standards and CakePHP</description>
	<pubDate>Mon, 21 May 2012 03:33:25 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on Contact by Jean Luis</title>
		<link>http://blog.sohaibmuneer.com/contact/comment-page-1#comment-786</link>
		<dc:creator>Jean Luis</dc:creator>
		<pubDate>Fri, 11 Nov 2011 19:10:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sohaibmuneer.com/?page_id=4#comment-786</guid>
		<description>Paginate a Find Result
Hello, im looking for a solution to this little problem of mine, i need to paginate tha data resulting from a custom find, bellow you can see the code that im using, at this point i get all the data that i need, but i"d like to paginate it because sometimes it returns a large amount of data.

Anyone have a suggestion??

THX in advance

PS: if you anything else code wise or me being more specific let me know

//THIS FORCES TO DO THIS "SELECT * FROM table1 LEFT JOIN table2 WHERE....."

$this-&#62;Equipo-&#62;unbindModel(array('hasMany'=&#62;array('Storages')));
$this-&#62;Equipo-&#62;bindModel(array('hasOne'=&#62;array('Storages'=&#62;array(
                                                       'foreignKey'=&#62;false,
                                                        'conditions'=&#62;array('Equipo.id_almacen = storages.id')
                                                                               )
                                                               )
                                               )
                                       );
//IN THIS PART $ DATA GETS THE VALUE OF "SELECT * FROM table1 LEFT JOIN table2 WHERE....."
$data=$this-&#62;Equipo-&#62;find('all',array('conditions'=&#62;array(
                                               'part_number LIKE'=&#62;"%".$this-&#62;data['Equipo']['part_number']."%",
                                               'id_almacen LIKE'=&#62;"%".$this-&#62;data['Equipo']['id_almacen']."%",
                                               'equipo_central LIKE'=&#62;"%".$this-&#62;data['Equipo']['equipo_central']."%",
                                               'descripcion LIKE'=&#62;"%".$this-&#62;data['Equipo']['descripcion']."%"
                                               ),
                       )
               );</description>
		<content:encoded><![CDATA[<p>Paginate a Find Result<br />
Hello, im looking for a solution to this little problem of mine, i need to paginate tha data resulting from a custom find, bellow you can see the code that im using, at this point i get all the data that i need, but i&#8221;d like to paginate it because sometimes it returns a large amount of data.</p>
<p>Anyone have a suggestion??</p>
<p>THX in advance</p>
<p>PS: if you anything else code wise or me being more specific let me know</p>
<p>//THIS FORCES TO DO THIS &#8220;SELECT * FROM table1 LEFT JOIN table2 WHERE&#8230;..&#8221;</p>
<p>$this-&gt;Equipo-&gt;unbindModel(array(&#8217;hasMany&#8217;=&gt;array(&#8217;Storages&#8217;)));<br />
$this-&gt;Equipo-&gt;bindModel(array(&#8217;hasOne&#8217;=&gt;array(&#8217;Storages&#8217;=&gt;array(<br />
                                                       &#8216;foreignKey&#8217;=&gt;false,<br />
                                                        &#8216;conditions&#8217;=&gt;array(&#8217;Equipo.id_almacen = storages.id&#8217;)<br />
                                                                               )<br />
                                                               )<br />
                                               )<br />
                                       );<br />
//IN THIS PART $ DATA GETS THE VALUE OF &#8220;SELECT * FROM table1 LEFT JOIN table2 WHERE&#8230;..&#8221;<br />
$data=$this-&gt;Equipo-&gt;find(&#8217;all&#8217;,array(&#8217;conditions&#8217;=&gt;array(<br />
                                               &#8216;part_number LIKE&#8217;=&gt;&#8221;%&#8221;.$this-&gt;data['Equipo']['part_number'].&#8221;%&#8221;,<br />
                                               &#8216;id_almacen LIKE&#8217;=&gt;&#8221;%&#8221;.$this-&gt;data['Equipo']['id_almacen'].&#8221;%&#8221;,<br />
                                               &#8216;equipo_central LIKE&#8217;=&gt;&#8221;%&#8221;.$this-&gt;data['Equipo']['equipo_central'].&#8221;%&#8221;,<br />
                                               &#8216;descripcion LIKE&#8217;=&gt;&#8221;%&#8221;.$this-&gt;data['Equipo']['descripcion'].&#8221;%&#8221;<br />
                                               ),<br />
                       )<br />
               );</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using MySQL INNER JOIN in CakePHP Pagination by Jean Luis</title>
		<link>http://blog.sohaibmuneer.com/using-mysql-inner-join-in-cakephp-pagination/comment-page-1#comment-785</link>
		<dc:creator>Jean Luis</dc:creator>
		<pubDate>Fri, 11 Nov 2011 12:50:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sohaibmuneer.com/?p=70#comment-785</guid>
		<description>Hello and very nice article, really helpfull

I was wondering if it would be possible to select everything that results from the query, meaning if it's possible to do this:

Instead of selecting only the columns from one table i could do this " SELECT * FROM table1 LEFT JOIN table2 WHERE"...

I also was wondering what you did your view, because when i press the next page number, i get sent to the form that i use to the search form where i collect the data that's used to perform the search</description>
		<content:encoded><![CDATA[<p>Hello and very nice article, really helpfull</p>
<p>I was wondering if it would be possible to select everything that results from the query, meaning if it&#8217;s possible to do this:</p>
<p>Instead of selecting only the columns from one table i could do this &#8221; SELECT * FROM table1 LEFT JOIN table2 WHERE&#8221;&#8230;</p>
<p>I also was wondering what you did your view, because when i press the next page number, i get sent to the form that i use to the search form where i collect the data that&#8217;s used to perform the search</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using MySQL INNER JOIN in CakePHP Pagination by ashish</title>
		<link>http://blog.sohaibmuneer.com/using-mysql-inner-join-in-cakephp-pagination/comment-page-1#comment-736</link>
		<dc:creator>ashish</dc:creator>
		<pubDate>Thu, 24 Jun 2010 10:07:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sohaibmuneer.com/?p=70#comment-736</guid>
		<description>Thanks a lot dude ...</description>
		<content:encoded><![CDATA[<p>Thanks a lot dude &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using MySQL INNER JOIN in CakePHP Pagination by MIlani</title>
		<link>http://blog.sohaibmuneer.com/using-mysql-inner-join-in-cakephp-pagination/comment-page-1#comment-735</link>
		<dc:creator>MIlani</dc:creator>
		<pubDate>Wed, 16 Jun 2010 18:55:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sohaibmuneer.com/?p=70#comment-735</guid>
		<description>Veryyy nice man!!!!!</description>
		<content:encoded><![CDATA[<p>Veryyy nice man!!!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using MySQL INNER JOIN in CakePHP Pagination by jeffery</title>
		<link>http://blog.sohaibmuneer.com/using-mysql-inner-join-in-cakephp-pagination/comment-page-1#comment-722</link>
		<dc:creator>jeffery</dc:creator>
		<pubDate>Wed, 24 Mar 2010 13:07:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sohaibmuneer.com/?p=70#comment-722</guid>
		<description>great article man..................
i was looking in to custom pagination.....in cakephp,somehow it didnt work great for me....and i struggled lot with out any success.........
But this article was awsome........that it saved me a lot of time....and i got it working in my 1st try.......
Thanks very much for publishing such a great article......</description>
		<content:encoded><![CDATA[<p>great article man&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;<br />
i was looking in to custom pagination&#8230;..in cakephp,somehow it didnt work great for me&#8230;.and i struggled lot with out any success&#8230;&#8230;&#8230;<br />
But this article was awsome&#8230;&#8230;..that it saved me a lot of time&#8230;.and i got it working in my 1st try&#8230;&#8230;.<br />
Thanks very much for publishing such a great article&#8230;&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on CakePHP Archivable Behavior by CakePHP Digest #22 &#8211; Don&#8217;t Go Away Mad&#8230;Just Go Away &#124; PseudoCoder.com</title>
		<link>http://blog.sohaibmuneer.com/cakephp-archivable-behavior/comment-page-1#comment-699</link>
		<dc:creator>CakePHP Digest #22 &#8211; Don&#8217;t Go Away Mad&#8230;Just Go Away &#124; PseudoCoder.com</dc:creator>
		<pubDate>Tue, 24 Nov 2009 02:24:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sohaibmuneer.com/?p=72#comment-699</guid>
		<description>[...] Sohaib Muneer release a new Archivable Behavior. It&#8217;s kind of like some of the &#8220;Soft Deletable&#8221; behaviors that are floating around, expect instead of flagging the row in the database it moved it to another table, so that the original table doesn&#8217;t get too cluttered. I like to call this &#8220;The Table of Misfit Rows&#8221;. [...]</description>
		<content:encoded><![CDATA[<p>[...] Sohaib Muneer release a new Archivable Behavior. It&#8217;s kind of like some of the &#8220;Soft Deletable&#8221; behaviors that are floating around, expect instead of flagging the row in the database it moved it to another table, so that the original table doesn&#8217;t get too cluttered. I like to call this &#8220;The Table of Misfit Rows&#8221;. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on &#8220;Stealth Programmers&#8221; - A New Species ? by &#34;Stealth Programmers&#34; have arrived - a new type of tech professional : Green &#38; White</title>
		<link>http://blog.sohaibmuneer.com/stealth-programmers-a-new-species/comment-page-1#comment-685</link>
		<dc:creator>&#34;Stealth Programmers&#34; have arrived - a new type of tech professional : Green &#38; White</dc:creator>
		<pubDate>Wed, 21 Oct 2009 22:34:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sohaibmuneer.com/?p=32#comment-685</guid>
		<description>[...] Hi new visitor! At Green &#38; White we discuss startups, business models, new media marketing, usability and more.You can subscribe to the RSS feed or subscribe for email alerts so that you keep up to date with the latest content. Now, on with the regular content...This is a guest post by Sohaib Muneer that originally appeared here. [...]</description>
		<content:encoded><![CDATA[<p>[...] Hi new visitor! At Green &#38; White we discuss startups, business models, new media marketing, usability and more.You can subscribe to the RSS feed or subscribe for email alerts so that you keep up to date with the latest content. Now, on with the regular content&#8230;This is a guest post by Sohaib Muneer that originally appeared here. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on ESlavery, The oDesk Experience by Odesk = eSlavery? One freelancers experience : Green &#38; White</title>
		<link>http://blog.sohaibmuneer.com/eslavery-the-odesk-experience/comment-page-1#comment-684</link>
		<dc:creator>Odesk = eSlavery? One freelancers experience : Green &#38; White</dc:creator>
		<pubDate>Wed, 21 Oct 2009 22:33:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sohaibmuneer.com/?p=31#comment-684</guid>
		<description>[...] Check out the rest on his blog [...]</description>
		<content:encoded><![CDATA[<p>[...] Check out the rest on his blog [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Free WordPress Themes by WooThemes by Pakistan Accounting Software Bizcore-i</title>
		<link>http://blog.sohaibmuneer.com/free-wordpress-themes-by-woothemes/comment-page-1#comment-680</link>
		<dc:creator>Pakistan Accounting Software Bizcore-i</dc:creator>
		<pubDate>Sat, 19 Sep 2009 04:18:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sohaibmuneer.com/?p=49#comment-680</guid>
		<description>Thanks for blogging the link of wordpress themes...</description>
		<content:encoded><![CDATA[<p>Thanks for blogging the link of wordpress themes&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on &#8220;Stealth Programmers&#8221; - A New Species ? by Pakistan Basic Accounting Software BizCore-i</title>
		<link>http://blog.sohaibmuneer.com/stealth-programmers-a-new-species/comment-page-1#comment-679</link>
		<dc:creator>Pakistan Basic Accounting Software BizCore-i</dc:creator>
		<pubDate>Wed, 16 Sep 2009 07:49:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sohaibmuneer.com/?p=32#comment-679</guid>
		<description>Our Developer's can Change the World but our Politics..... Ohh Ma God</description>
		<content:encoded><![CDATA[<p>Our Developer&#8217;s can Change the World but our Politics&#8230;.. Ohh Ma God</p>
]]></content:encoded>
	</item>
</channel>
</rss>

