<?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: Auto Paginate Component for CakePHP (Persisting Pagination Limits 2.0)</title>
	<atom:link href="http://jamienay.com/2009/07/auto-paginate-component-for-cakephp-persisting-pagination-limits-20/feed/" rel="self" type="application/rss+xml" />
	<link>http://jamienay.com/2009/07/auto-paginate-component-for-cakephp-persisting-pagination-limits-20/</link>
	<description>A PHP web developer writing about the web.</description>
	<lastBuildDate>Sun, 29 Aug 2010 15:08:30 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: jayu</title>
		<link>http://jamienay.com/2009/07/auto-paginate-component-for-cakephp-persisting-pagination-limits-20/comment-page-1/#comment-6858</link>
		<dc:creator>jayu</dc:creator>
		<pubDate>Thu, 24 Jun 2010 08:14:49 +0000</pubDate>
		<guid isPermaLink="false">http://jamienay.com/?p=267#comment-6858</guid>
		<description>hello,

I used your component but it shows me error array_combine() [function.array-combine]: Both parameters should have an equal number of elements my code is given below. I just change the name of the component as pagination. 


in events controller 

$this-&gt;Event-&gt;recursive = 0;
		$this-&gt;Pagination-&gt;setPaginate(array(
 		&#039;contain&#039; =&gt; array(&#039;Event&#039;)
 		));
 		$this-&gt;data = $this-&gt;Event-&gt;find(&quot;all&quot;);
 		
 		$this-&gt;set($this-&gt;data, $this-&gt;Paginate());


Thanks</description>
		<content:encoded><![CDATA[<p>hello,</p>
<p>I used your component but it shows me error array_combine() [function.array-combine]: Both parameters should have an equal number of elements my code is given below. I just change the name of the component as pagination. </p>
<p>in events controller </p>
<p>$this-&gt;Event-&gt;recursive = 0;<br />
		$this-&gt;Pagination-&gt;setPaginate(array(<br />
 		&#8216;contain&#8217; =&gt; array(&#8216;Event&#8217;)<br />
 		));<br />
 		$this-&gt;data = $this-&gt;Event-&gt;find(&#8220;all&#8221;);</p>
<p> 		$this-&gt;set($this-&gt;data, $this-&gt;Paginate());</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fly2279</title>
		<link>http://jamienay.com/2009/07/auto-paginate-component-for-cakephp-persisting-pagination-limits-20/comment-page-1/#comment-1492</link>
		<dc:creator>fly2279</dc:creator>
		<pubDate>Fri, 17 Jul 2009 17:48:44 +0000</pubDate>
		<guid isPermaLink="false">http://jamienay.com/?p=267#comment-1492</guid>
		<description>&lt;a href=&quot;#comment-1489&quot; rel=&quot;nofollow&quot;&gt;@Jamie &lt;/a&gt; 
Are your prev and next links working correctly using the original code?</description>
		<content:encoded><![CDATA[<p><a href="#comment-1489" rel="nofollow">@Jamie </a><br />
Are your prev and next links working correctly using the original code?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jamie</title>
		<link>http://jamienay.com/2009/07/auto-paginate-component-for-cakephp-persisting-pagination-limits-20/comment-page-1/#comment-1489</link>
		<dc:creator>Jamie</dc:creator>
		<pubDate>Fri, 17 Jul 2009 15:19:50 +0000</pubDate>
		<guid isPermaLink="false">http://jamienay.com/?p=267#comment-1489</guid>
		<description>&lt;a href=&quot;#comment-1486&quot; rel=&quot;nofollow&quot;&gt;@fly2279 &lt;/a&gt; 
Well, the problem there is that then you lose any custom prefixes and custom named arguments - at least in my testing. That&#039;s why I need to pass $this-&gt;passedArgs, since otherwise my named arguments will vanish. The same thing goes for non-admin prefixes, which I&#039;ve been working with recently. But if you can think of a way to preserve those while still keeping the paginator links nice and lean, then I&#039;m all for it.</description>
		<content:encoded><![CDATA[<p><a href="#comment-1486" rel="nofollow">@fly2279 </a><br />
Well, the problem there is that then you lose any custom prefixes and custom named arguments &#8211; at least in my testing. That&#8217;s why I need to pass $this->passedArgs, since otherwise my named arguments will vanish. The same thing goes for non-admin prefixes, which I&#8217;ve been working with recently. But if you can think of a way to preserve those while still keeping the paginator links nice and lean, then I&#8217;m all for it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fly2279</title>
		<link>http://jamienay.com/2009/07/auto-paginate-component-for-cakephp-persisting-pagination-limits-20/comment-page-1/#comment-1486</link>
		<dc:creator>fly2279</dc:creator>
		<pubDate>Fri, 17 Jul 2009 13:51:53 +0000</pubDate>
		<guid isPermaLink="false">http://jamienay.com/?p=267#comment-1486</guid>
		<description>I think in the bottom.ctp file you should leave the array empty that holds the array(&#039;url&#039; =&gt; $this-&gt;passedArgs) on the prev and next links. The way they are both links point to the current page instead of the previous or next page. I changed it to read (like in the original baked files): echo $paginator-&gt;next(__(&#039;next&#039;, true).&#039; &gt;&gt;&#039;, array(), null, array(&#039;class&#039;=&gt;&#039;disabled&#039;))and now the links work fine.</description>
		<content:encoded><![CDATA[<p>I think in the bottom.ctp file you should leave the array empty that holds the array(&#8216;url&#8217; =&gt; $this-&gt;passedArgs) on the prev and next links. The way they are both links point to the current page instead of the previous or next page. I changed it to read (like in the original baked files): echo $paginator-&gt;next(__(&#8216;next&#8217;, true).&#8217; &gt;&gt;&#8217;, array(), null, array(&#8216;class&#8217;=&gt;&#8217;disabled&#8217;))and now the links work fine.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fly2279</title>
		<link>http://jamienay.com/2009/07/auto-paginate-component-for-cakephp-persisting-pagination-limits-20/comment-page-1/#comment-1482</link>
		<dc:creator>fly2279</dc:creator>
		<pubDate>Thu, 16 Jul 2009 17:21:37 +0000</pubDate>
		<guid isPermaLink="false">http://jamienay.com/?p=267#comment-1482</guid>
		<description>&lt;a href=&quot;#comment-1480&quot; rel=&quot;nofollow&quot;&gt;@Jamie &lt;/a&gt; 
Oh, I should have figured that out. Must have been too fried to see that. Thanks for the fixes.</description>
		<content:encoded><![CDATA[<p><a href="#comment-1480" rel="nofollow">@Jamie </a><br />
Oh, I should have figured that out. Must have been too fried to see that. Thanks for the fixes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jamie</title>
		<link>http://jamienay.com/2009/07/auto-paginate-component-for-cakephp-persisting-pagination-limits-20/comment-page-1/#comment-1480</link>
		<dc:creator>Jamie</dc:creator>
		<pubDate>Thu, 16 Jul 2009 16:06:38 +0000</pubDate>
		<guid isPermaLink="false">http://jamienay.com/?p=267#comment-1480</guid>
		<description>Oops, sorry: I kinda took the easy way out and just copied and pasted the code from the version first of this. I thought I made the necessary changes but it looks like I missed a spot or two. instead of $this-&gt;_setPaginate, just use $this-&gt;AutoPaginate-&gt;setPaginate without the underscore.

As for the htmla problem, another oops: I&#039;m using an extension of the HTML helper that&#039;s called HtmlaHelper. So just replace all of the $htmla-&gt;link calls with $html-&gt;link calls.

I&#039;ve updated the tutorial with the fixes. Thanks for pointing them out!</description>
		<content:encoded><![CDATA[<p>Oops, sorry: I kinda took the easy way out and just copied and pasted the code from the version first of this. I thought I made the necessary changes but it looks like I missed a spot or two. instead of $this->_setPaginate, just use $this->AutoPaginate->setPaginate without the underscore.</p>
<p>As for the htmla problem, another oops: I&#8217;m using an extension of the HTML helper that&#8217;s called HtmlaHelper. So just replace all of the $htmla->link calls with $html->link calls.</p>
<p>I&#8217;ve updated the tutorial with the fixes. Thanks for pointing them out!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fly2279</title>
		<link>http://jamienay.com/2009/07/auto-paginate-component-for-cakephp-persisting-pagination-limits-20/comment-page-1/#comment-1477</link>
		<dc:creator>fly2279</dc:creator>
		<pubDate>Thu, 16 Jul 2009 12:47:26 +0000</pubDate>
		<guid isPermaLink="false">http://jamienay.com/?p=267#comment-1477</guid>
		<description>I created the component file and the elements and I get some errors. First if I use the _setPaginate method it gives me: Call to undefined method UsersController::_setPaginate(). Also for the views it gives me: Undefined variable: htmla for the top.ctp and Call to a member function link() on a non-object for the bottom.ctp. What did I do wrong?</description>
		<content:encoded><![CDATA[<p>I created the component file and the elements and I get some errors. First if I use the _setPaginate method it gives me: Call to undefined method UsersController::_setPaginate(). Also for the views it gives me: Undefined variable: htmla for the top.ctp and Call to a member function link() on a non-object for the bottom.ctp. What did I do wrong?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fly2279</title>
		<link>http://jamienay.com/2009/07/auto-paginate-component-for-cakephp-persisting-pagination-limits-20/comment-page-1/#comment-1476</link>
		<dc:creator>fly2279</dc:creator>
		<pubDate>Thu, 16 Jul 2009 12:25:05 +0000</pubDate>
		<guid isPermaLink="false">http://jamienay.com/?p=267#comment-1476</guid>
		<description>Thanks for making this a component. It saved me a bunch of time.</description>
		<content:encoded><![CDATA[<p>Thanks for making this a component. It saved me a bunch of time.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
