<?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 and Doctrine from scratch. Day 10 – Pagination</title>
	<atom:link href="http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-10-pagination/feed" rel="self" type="application/rss+xml" />
	<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-10-pagination</link>
	<description>PHP, JS, CSS, jQuery, CodeIgniter, Doctrine</description>
	<lastBuildDate>Fri, 03 Feb 2012 14:33:19 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
	<item>
		<title>By: CodeIgniter and Doctrine from scratch. &#124; 世界是平的</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-10-pagination/comment-page-1#comment-88039</link>
		<dc:creator>CodeIgniter and Doctrine from scratch. &#124; 世界是平的</dc:creator>
		<pubDate>Mon, 30 Jan 2012 17:32:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=793#comment-88039</guid>
		<description>[...] Day 10: Pagination [...]</description>
		<content:encoded><![CDATA[<p>[...] Day 10: Pagination [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: WestStacey</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-10-pagination/comment-page-1#comment-61982</link>
		<dc:creator>WestStacey</dc:creator>
		<pubDate>Fri, 28 Oct 2011 04:39:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=793#comment-61982</guid>
		<description>=</description>
		<content:encoded><![CDATA[<p>=</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Quick start with Codeigniter using some build-in Libraries &#124; Web Application Solutions</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-10-pagination/comment-page-1#comment-39832</link>
		<dc:creator>Quick start with Codeigniter using some build-in Libraries &#124; Web Application Solutions</dc:creator>
		<pubDate>Mon, 18 Apr 2011 09:50:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=793#comment-39832</guid>
		<description>[...] Day 10: Pagination [...]</description>
		<content:encoded><![CDATA[<p>[...] Day 10: Pagination [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mastere1</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-10-pagination/comment-page-1#comment-39624</link>
		<dc:creator>Mastere1</dc:creator>
		<pubDate>Fri, 15 Apr 2011 13:28:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=793#comment-39624</guid>
		<description>I am the other one who read your tutorial. Thank&#039;s anyway for you sharing in code. Eh, I wait for your next, I hope the next you write for working with sessions. Don&#039;t forget CodeIgniter has the latest version which is different with you wrote with. e.g. that the plugins folder removed in the newer that&#039;s make me face some problem on how to activated doctrine.

O.K. That&#039;s it, C U on next....</description>
		<content:encoded><![CDATA[<p>I am the other one who read your tutorial. Thank&#8217;s anyway for you sharing in code. Eh, I wait for your next, I hope the next you write for working with sessions. Don&#8217;t forget CodeIgniter has the latest version which is different with you wrote with. e.g. that the plugins folder removed in the newer that&#8217;s make me face some problem on how to activated doctrine.</p>
<p>O.K. That&#8217;s it, C U on next&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rahul gamit</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-10-pagination/comment-page-1#comment-35179</link>
		<dc:creator>rahul gamit</dc:creator>
		<pubDate>Wed, 02 Mar 2011 06:12:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=793#comment-35179</guid>
		<description>I am facing this problem while deleting record in last page of the pagination system. Totally i am having 20 records and i have set page per size is 5. And i am selecting the records using limit() function of sql to display records with edit and delete actions. It is working fine with the pagination. For pagination i have used the inbuilt class. The problem is that, when i am on 4th page then it displays the last 5 records and when i am trying to delete one record from 4th page,
the record gets delete but  the page doesn’t display rest of the 4 records.And when i am refreshing the page using F5 the page will display 4 records.So how to make this refresh activity directly using pagination ?  Please help me. How to resolve this issue? why it is happening?

Thanks in advance.</description>
		<content:encoded><![CDATA[<p>I am facing this problem while deleting record in last page of the pagination system. Totally i am having 20 records and i have set page per size is 5. And i am selecting the records using limit() function of sql to display records with edit and delete actions. It is working fine with the pagination. For pagination i have used the inbuilt class. The problem is that, when i am on 4th page then it displays the last 5 records and when i am trying to delete one record from 4th page,<br />
the record gets delete but  the page doesn’t display rest of the 4 records.And when i am refreshing the page using F5 the page will display 4 records.So how to make this refresh activity directly using pagination ?  Please help me. How to resolve this issue? why it is happening?</p>
<p>Thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: doppelganger</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-10-pagination/comment-page-1#comment-20433</link>
		<dc:creator>doppelganger</dc:creator>
		<pubDate>Sun, 07 Nov 2010 14:42:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=793#comment-20433</guid>
		<description>Thanks for great tutorial! I believe it is the best knowledge source for CI+Doctrine.

I have a question though. Is there any elegant way to limit and order Doctrine collections? Say I want to display articles by categories and I want to display only 10 last news in each category. 

I have Article and Category models (both are Doctrine). Is there any way to limit and sort Category-&gt;Articles collection? Or should I use Doctrine_Query for any non-standard query? 

Thanks in advance for your answers.</description>
		<content:encoded><![CDATA[<p>Thanks for great tutorial! I believe it is the best knowledge source for CI+Doctrine.</p>
<p>I have a question though. Is there any elegant way to limit and order Doctrine collections? Say I want to display articles by categories and I want to display only 10 last news in each category. </p>
<p>I have Article and Category models (both are Doctrine). Is there any way to limit and sort Category-&gt;Articles collection? Or should I use Doctrine_Query for any non-standard query? </p>
<p>Thanks in advance for your answers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Elennaro</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-10-pagination/comment-page-1#comment-19267</link>
		<dc:creator>Elennaro</dc:creator>
		<pubDate>Wed, 27 Oct 2010 01:13:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=793#comment-19267</guid>
		<description>in controller
$vars[&#039;threads&#039;] = $forum-&gt;getThreadsArray(
			$offset,
			$per_page
		);
Gives: LIMIT xx OFFSET 4
- it shoul be wrong!

corrected to:

$vars[&#039;threads&#039;] = $forum-&gt;getThreadsArray(
			$per_page,
			$offset
		);

Mow works for me: LIMIT 4 OFFSET xx</description>
		<content:encoded><![CDATA[<p>in controller<br />
$vars['threads'] = $forum-&gt;getThreadsArray(<br />
			$offset,<br />
			$per_page<br />
		);<br />
Gives: LIMIT xx OFFSET 4<br />
- it shoul be wrong!</p>
<p>corrected to:</p>
<p>$vars['threads'] = $forum-&gt;getThreadsArray(<br />
			$per_page,<br />
			$offset<br />
		);</p>
<p>Mow works for me: LIMIT 4 OFFSET xx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: abuddessaky</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-10-pagination/comment-page-1#comment-5584</link>
		<dc:creator>abuddessaky</dc:creator>
		<pubDate>Sun, 23 May 2010 10:47:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=793#comment-5584</guid>
		<description>tramadol Rifamate more and  moderately its it Be an in
procedures The and hypromellose  our difficult liquids renal
tramadolin Information administration were of cut and which TRAMADOLfor brain reactions TYLENOL person</description>
		<content:encoded><![CDATA[<p>tramadol Rifamate more and  moderately its it Be an in<br />
procedures The and hypromellose  our difficult liquids renal<br />
tramadolin Information administration were of cut and which TRAMADOLfor brain reactions TYLENOL person</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ru Sh</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-10-pagination/comment-page-1#comment-5389</link>
		<dc:creator>Ru Sh</dc:creator>
		<pubDate>Mon, 17 May 2010 20:07:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=793#comment-5389</guid>
		<description>Nice tutorial. Thanks</description>
		<content:encoded><![CDATA[<p>Nice tutorial. Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ed</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-10-pagination/comment-page-1#comment-3193</link>
		<dc:creator>Ed</dc:creator>
		<pubDate>Sun, 28 Mar 2010 17:38:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=793#comment-3193</guid>
		<description>just getting into codeigniter and really enjoying this series
there&#039;s a book to be published with all these tutorials when you&#039;re finished :)</description>
		<content:encoded><![CDATA[<p>just getting into codeigniter and really enjoying this series<br />
there&#8217;s a book to be published with all these tutorials when you&#8217;re finished <img src='http://www.phpandstuff.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-10-pagination/comment-page-1#comment-2612</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Fri, 12 Mar 2010 09:50:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=793#comment-2612</guid>
		<description>Great series, Burak. Is it possible to set the URLs something like this?
.../forums/forum-title/thread-title

Rather than it being based on the id like .../forums/display/53/8

Thank you :)</description>
		<content:encoded><![CDATA[<p>Great series, Burak. Is it possible to set the URLs something like this?<br />
&#8230;/forums/forum-title/thread-title</p>
<p>Rather than it being based on the id like &#8230;/forums/display/53/8</p>
<p>Thank you <img src='http://www.phpandstuff.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MT Backend</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-10-pagination/comment-page-1#comment-2342</link>
		<dc:creator>MT Backend</dc:creator>
		<pubDate>Tue, 02 Mar 2010 16:59:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=793#comment-2342</guid>
		<description>Hi burak thank you for tutorial i have a question about doctrine. I am using codeigniter&#039;s core db class its enough for my needs. But doctrine is looking good too. Is docrtine faster then ci&#039;s core db class, why do you prefer to use doctrine instead of ci&#039;s core db class?</description>
		<content:encoded><![CDATA[<p>Hi burak thank you for tutorial i have a question about doctrine. I am using codeigniter&#8217;s core db class its enough for my needs. But doctrine is looking good too. Is docrtine faster then ci&#8217;s core db class, why do you prefer to use doctrine instead of ci&#8217;s core db class?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sanaa</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-10-pagination/comment-page-1#comment-2283</link>
		<dc:creator>Sanaa</dc:creator>
		<pubDate>Fri, 26 Feb 2010 01:21:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=793#comment-2283</guid>
		<description>Very good tutorials. Waiting for the next one.
Thanks Burak!</description>
		<content:encoded><![CDATA[<p>Very good tutorials. Waiting for the next one.<br />
Thanks Burak!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: belial.seed</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-10-pagination/comment-page-1#comment-2247</link>
		<dc:creator>belial.seed</dc:creator>
		<pubDate>Tue, 23 Feb 2010 21:01:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=793#comment-2247</guid>
		<description>Great tutorials.</description>
		<content:encoded><![CDATA[<p>Great tutorials.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Burak</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-10-pagination/comment-page-1#comment-2172</link>
		<dc:creator>Burak</dc:creator>
		<pubDate>Thu, 18 Feb 2010 23:12:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=793#comment-2172</guid>
		<description>Do you mean sub-queries?

Here: http://www.doctrine-project.org/documentation/manual/1_2/pl/dql-doctrine-query-language#subqueries</description>
		<content:encoded><![CDATA[<p>Do you mean sub-queries?</p>
<p>Here: <a href="http://www.doctrine-project.org/documentation/manual/1_2/pl/dql-doctrine-query-language#subqueries" rel="nofollow">http://www.doctrine-project.org/documentation/manual/1_2/pl/dql-doctrine-query-language#subqueries</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: piyush</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-10-pagination/comment-page-1#comment-2168</link>
		<dc:creator>piyush</dc:creator>
		<pubDate>Thu, 18 Feb 2010 15:38:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=793#comment-2168</guid>
		<description>Hi, 

can you please tell me that how can we write nested select queries using dql.

Thanks in advance.</description>
		<content:encoded><![CDATA[<p>Hi, </p>
<p>can you please tell me that how can we write nested select queries using dql.</p>
<p>Thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stefan</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-10-pagination/comment-page-1#comment-1947</link>
		<dc:creator>stefan</dc:creator>
		<pubDate>Sun, 07 Feb 2010 20:47:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=793#comment-1947</guid>
		<description>very cool tutorial-series!
I´m through with your tutorial and waiting for part 11 :-)

CI + Doctrine FTW - I like them better than Zend FW or Symfony.

Found your blog over at nettuts.com.
/bookmarked</description>
		<content:encoded><![CDATA[<p>very cool tutorial-series!<br />
I´m through with your tutorial and waiting for part 11 <img src='http://www.phpandstuff.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>CI + Doctrine FTW &#8211; I like them better than Zend FW or Symfony.</p>
<p>Found your blog over at nettuts.com.<br />
/bookmarked</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mohamed Mahmoud</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-10-pagination/comment-page-1#comment-1946</link>
		<dc:creator>Mohamed Mahmoud</dc:creator>
		<pubDate>Sun, 07 Feb 2010 18:22:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=793#comment-1946</guid>
		<description>Many Thanks To you 

really great work 

can u create a new post just to receive comments about advanced problems that not related to any of the exist 10 tutorials ... 

so if any one work with DocTrine &amp; CI and faces any advanced problem not mentioned here .. can ask you about it .. maybe you faced it before .. 

And Again Many Thanks to you From Africa Champions :D</description>
		<content:encoded><![CDATA[<p>Many Thanks To you </p>
<p>really great work </p>
<p>can u create a new post just to receive comments about advanced problems that not related to any of the exist 10 tutorials &#8230; </p>
<p>so if any one work with DocTrine &amp; CI and faces any advanced problem not mentioned here .. can ask you about it .. maybe you faced it before .. </p>
<p>And Again Many Thanks to you From Africa Champions <img src='http://www.phpandstuff.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-10-pagination/comment-page-1#comment-1675</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Sat, 30 Jan 2010 05:32:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=793#comment-1675</guid>
		<description>oops - that did not work??
but this does - from http://devzone.zend.com/article/11512

Doctrine::loadModels(APPPATH.&#039;/models/generated&#039;);
Doctrine::loadModels(APPPATH.&#039;/models&#039;);</description>
		<content:encoded><![CDATA[<p>oops &#8211; that did not work??<br />
but this does &#8211; from <a href="http://devzone.zend.com/article/11512" rel="nofollow">http://devzone.zend.com/article/11512</a></p>
<p>Doctrine::loadModels(APPPATH.&#8217;/models/generated&#8217;);<br />
Doctrine::loadModels(APPPATH.&#8217;/models&#8217;);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard</title>
		<link>http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-10-pagination/comment-page-1#comment-1672</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Sat, 30 Jan 2010 03:32:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpandstuff.com/?p=793#comment-1672</guid>
		<description>- it placed base classes in generated (folder) -
I forgot to mention I used the doctrine to move from yaml schema to models. i added a folder schema under application and in doctrine_tools (controllers) i added

	function create_models() {
		echo &#039;This creates models from schema!
		
		
		&#039;;
		if ($this-&gt;input-&gt;post(&#039;action&#039;)) {
			$options = array(
			  &#039;suffix&#039;          =&gt;  &#039;.php&#039;
			);

			Doctrine::generateModelsFromYaml(APPPATH.&#039;/schema&#039;, APPPATH.&#039;/models&#039;, $options);
		
			echo &quot;Done!&quot;;
		}
	}</description>
		<content:encoded><![CDATA[<p>- it placed base classes in generated (folder) -<br />
I forgot to mention I used the doctrine to move from yaml schema to models. i added a folder schema under application and in doctrine_tools (controllers) i added</p>
<p>	function create_models() {<br />
		echo &#8216;This creates models from schema!</p>
<p>		&#8216;;<br />
		if ($this-&gt;input-&gt;post(&#8216;action&#8217;)) {<br />
			$options = array(<br />
			  &#8216;suffix&#8217;          =&gt;  &#8216;.php&#8217;<br />
			);</p>
<p>			Doctrine::generateModelsFromYaml(APPPATH.&#8217;/schema&#8217;, APPPATH.&#8217;/models&#8217;, $options);</p>
<p>			echo &#8220;Done!&#8221;;<br />
		}<br />
	}</p>
]]></content:encoded>
	</item>
</channel>
</rss>

