<?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: Zend_Paginator and Your Result Set.</title>
	<atom:link href="http://www.armando.ws/2008/10/zend_paginator-and-your-result-set/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.armando.ws/2008/10/zend_paginator-and-your-result-set/</link>
	<description>All things Technical and Personal - Armando Padilla</description>
	<lastBuildDate>Mon, 30 Aug 2010 17:45:05 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: dayg</title>
		<link>http://www.armando.ws/2008/10/zend_paginator-and-your-result-set/comment-page-1/#comment-37395</link>
		<dc:creator>dayg</dc:creator>
		<pubDate>Wed, 18 Feb 2009 08:06:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.armando.ws/?p=254#comment-37395</guid>
		<description>@Michael

Try this related tutorial: http://teethgrinder.co.uk/perm.php?a=Zend-Framework-MySQL-DB-Pagination-Tutorial</description>
		<content:encoded><![CDATA[<p>@Michael</p>
<p>Try this related tutorial: <a href="http://teethgrinder.co.uk/perm.php?a=Zend-Framework-MySQL-DB-Pagination-Tutorial" rel="nofollow">http://teethgrinder.co.uk/perm.php?a=Zend-Framework-MySQL-DB-Pagination-Tutorial</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Using Zend_Pagination with Zend_Db_Table_Abstract - Zend Framework Forum</title>
		<link>http://www.armando.ws/2008/10/zend_paginator-and-your-result-set/comment-page-1/#comment-35098</link>
		<dc:creator>Using Zend_Pagination with Zend_Db_Table_Abstract - Zend Framework Forum</dc:creator>
		<pubDate>Thu, 29 Jan 2009 08:47:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.armando.ws/?p=254#comment-35098</guid>
		<description>[...] Using the Zend_Db_Select object will return only a few at a time. I wrote up a small example. { Online Notes } Blog Archive Zend_Paginator and Your Result Set.    __________________ www.armando.ws Author: Beginning Zend [...]</description>
		<content:encoded><![CDATA[<p>[...] Using the Zend_Db_Select object will return only a few at a time. I wrote up a small example. { Online Notes } Blog Archive Zend_Paginator and Your Result Set.    __________________ <a href="http://www.armando.ws" rel="nofollow">http://www.armando.ws</a> Author: Beginning Zend [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://www.armando.ws/2008/10/zend_paginator-and-your-result-set/comment-page-1/#comment-10867</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Wed, 22 Oct 2008 14:49:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.armando.ws/?p=254#comment-10867</guid>
		<description>Hello,

Thanks for the explanation, its quite clear to me now. However..

I just started playing around with the Zend Framework (version 1.6),
and noticed the Zend_Paginator. However, I failed to get it working.
So i ended up here and basically copied that last example to try and see if that works.

When creating a new instance of
&quot;$db = new Zend_Db::factory() //Paraphrasing here. &quot;

I assume I leave out the &#039;new&#039; since this is static? Cause when i removed it, my error went away as well. So I modified it a bit and now it looks like this:

		$db = Zend_Db::factory(&#039;Pdo_Mysql&#039;, array(
		    &#039;host&#039;     =&gt; &#039;localhost&#039;,
		    &#039;username&#039; =&gt; &#039;root&#039;,
		    &#039;password&#039; =&gt; &#039;root&#039;,
		    &#039;dbname&#039;   =&gt; &#039;gs_stock&#039;
		));

Again, assuming this is correct, it will be establishing a connection with my db.

Then I replaced:
&quot;$selectStatement = $db-&gt;select()-&gt;from(”Players”);&quot;
With:
&quot;$selectStatement = $db-&gt;select()-&gt;from(”tbl_packages”);&quot;

And i basically leave everything else you posted here in the last example, as it was, (of course, with the $currentPage variable being dynamic, depending on the URL)

So, now i come across on error of which i do not know how to handle and have attempted many times to figure it out / search around in the docs/google and what not.

The Error is:
&quot;Warning: No view partial provided and no default set in C:\xampp\htdocs\library\Zend\Paginator.php on line 384&quot;

There was 1 thing i found that might resolve this issue, namely:
&quot;Zend_View_Helper_PaginationControl::setDefaultViewPartial();&quot;
And the argument i passed in was basically: &quot;users/user.phtml&quot;.
But when i do that, it still apparently doesnt display anything, unless i put some static text in the .phtml file, it then displays whatever i put in there twice.

Any ideas what could be wrong? Thanks!</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>Thanks for the explanation, its quite clear to me now. However..</p>
<p>I just started playing around with the Zend Framework (version 1.6),<br />
and noticed the Zend_Paginator. However, I failed to get it working.<br />
So i ended up here and basically copied that last example to try and see if that works.</p>
<p>When creating a new instance of<br />
&#8220;$db = new Zend_Db::factory() //Paraphrasing here. &#8221;</p>
<p>I assume I leave out the &#8216;new&#8217; since this is static? Cause when i removed it, my error went away as well. So I modified it a bit and now it looks like this:</p>
<p>		$db = Zend_Db::factory(&#8216;Pdo_Mysql&#8217;, array(<br />
		    &#8216;host&#8217;     =&gt; &#8216;localhost&#8217;,<br />
		    &#8216;username&#8217; =&gt; &#8216;root&#8217;,<br />
		    &#8216;password&#8217; =&gt; &#8216;root&#8217;,<br />
		    &#8216;dbname&#8217;   =&gt; &#8216;gs_stock&#8217;<br />
		));</p>
<p>Again, assuming this is correct, it will be establishing a connection with my db.</p>
<p>Then I replaced:<br />
&#8220;$selectStatement = $db-&gt;select()-&gt;from(”Players”);&#8221;<br />
With:<br />
&#8220;$selectStatement = $db-&gt;select()-&gt;from(”tbl_packages”);&#8221;</p>
<p>And i basically leave everything else you posted here in the last example, as it was, (of course, with the $currentPage variable being dynamic, depending on the URL)</p>
<p>So, now i come across on error of which i do not know how to handle and have attempted many times to figure it out / search around in the docs/google and what not.</p>
<p>The Error is:<br />
&#8220;Warning: No view partial provided and no default set in C:\xampp\htdocs\library\Zend\Paginator.php on line 384&#8243;</p>
<p>There was 1 thing i found that might resolve this issue, namely:<br />
&#8220;Zend_View_Helper_PaginationControl::setDefaultViewPartial();&#8221;<br />
And the argument i passed in was basically: &#8220;users/user.phtml&#8221;.<br />
But when i do that, it still apparently doesnt display anything, unless i put some static text in the .phtml file, it then displays whatever i put in there twice.</p>
<p>Any ideas what could be wrong? Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
