<?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: CakePHP Menu Helper for Tree data</title>
	<atom:link href="http://www.flipflops.org/2009/09/29/cakephp-menu-helper-for-tree-data/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.flipflops.org/2009/09/29/cakephp-menu-helper-for-tree-data/</link>
	<description>Flipflops.org is about web development and fairly conceptual art</description>
	<lastBuildDate>Tue, 31 Jan 2012 00:19:41 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Flipflops</title>
		<link>http://www.flipflops.org/2009/09/29/cakephp-menu-helper-for-tree-data/#comment-13496</link>
		<dc:creator>Flipflops</dc:creator>
		<pubDate>Fri, 13 May 2011 13:18:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.flipflops.org/2009/09/29/cakephp-menu-helper-for-tree-data/#comment-13496</guid>
		<description>Hi Will

I&#039;m glad that it has come in handy. I&#039;m afraid that I haven&#039;t done any new CakePHP development pretty much since I did built this (work going in different directions etc.)

I do have a plan to put all my archive stuff up on &lt;a href=&quot;http://bitbucket.org&quot; rel=&quot;nofollow&quot;&gt;Bitbucket&lt;/a&gt; (I prefer Mercurial to Git) - but realistically I&#039;m so busy this will probably never happen :(

On a kind of related note though I&#039;ve just finished an extremely complex project which (excluding design work) a team of four of us put together in less than 2 weeks. We used Yii and none of us build a production site with it before. Can&#039;t say it wasn&#039;t extremely stressful, but overall it was a very positive experience - and it is a delight to work with.</description>
		<content:encoded><![CDATA[<p>Hi Will</p>
<p>I&#8217;m glad that it has come in handy. I&#8217;m afraid that I haven&#8217;t done any new CakePHP development pretty much since I did built this (work going in different directions etc.)</p>
<p>I do have a plan to put all my archive stuff up on <a href="http://bitbucket.org" rel="nofollow">Bitbucket</a> (I prefer Mercurial to Git) &#8211; but realistically I&#8217;m so busy this will probably never happen <img src='http://www.flipflops.org/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>On a kind of related note though I&#8217;ve just finished an extremely complex project which (excluding design work) a team of four of us put together in less than 2 weeks. We used Yii and none of us build a production site with it before. Can&#8217;t say it wasn&#8217;t extremely stressful, but overall it was a very positive experience &#8211; and it is a delight to work with.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Will</title>
		<link>http://www.flipflops.org/2009/09/29/cakephp-menu-helper-for-tree-data/#comment-13495</link>
		<dc:creator>Will</dc:creator>
		<pubDate>Fri, 13 May 2011 05:50:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.flipflops.org/2009/09/29/cakephp-menu-helper-for-tree-data/#comment-13495</guid>
		<description>hi, this is great, thanks!

More stuff that would be great: 

submenus - all the stuff below current item
Limit depth  - just show nth level of items  - eg if you don&#039;t want drop down in menus.

Have you implemented either of those? Are you planning any further updates? Is it on github or anything?

Thanks again,

will</description>
		<content:encoded><![CDATA[<p>hi, this is great, thanks!</p>
<p>More stuff that would be great: </p>
<p>submenus &#8211; all the stuff below current item<br />
Limit depth  &#8211; just show nth level of items  &#8211; eg if you don&#8217;t want drop down in menus.</p>
<p>Have you implemented either of those? Are you planning any further updates? Is it on github or anything?</p>
<p>Thanks again,</p>
<p>will</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://www.flipflops.org/2009/09/29/cakephp-menu-helper-for-tree-data/#comment-13477</link>
		<dc:creator>David</dc:creator>
		<pubDate>Fri, 29 Apr 2011 03:51:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.flipflops.org/2009/09/29/cakephp-menu-helper-for-tree-data/#comment-13477</guid>
		<description>Hello, I&#039;m trying to use the helper in context mode, but it give me this error: Undefined offset: 1 [APP/views/helpers/menu.php, line 353].
Don&#039;t show anything, in tree mode it show all the menu.

Thanks for help!</description>
		<content:encoded><![CDATA[<p>Hello, I&#8217;m trying to use the helper in context mode, but it give me this error: Undefined offset: 1 [APP/views/helpers/menu.php, line 353].<br />
Don&#8217;t show anything, in tree mode it show all the menu.</p>
<p>Thanks for help!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CakePHP Menu Helper for Tree data – Flipflops.org &#124; Peridot Front end &#38; webapp developer</title>
		<link>http://www.flipflops.org/2009/09/29/cakephp-menu-helper-for-tree-data/#comment-13346</link>
		<dc:creator>CakePHP Menu Helper for Tree data – Flipflops.org &#124; Peridot Front end &#38; webapp developer</dc:creator>
		<pubDate>Sun, 15 Aug 2010 19:35:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.flipflops.org/2009/09/29/cakephp-menu-helper-for-tree-data/#comment-13346</guid>
		<description>[...] CakePHP Menu Helper for Tree data – Flipflops.org.   This entry was posted in What am i doing!. Bookmark the permalink.    &#8592; JONAS LINDSTRÖM photographer [...]</description>
		<content:encoded><![CDATA[<p>[...] CakePHP Menu Helper for Tree data – Flipflops.org.   This entry was posted in What am i doing!. Bookmark the permalink.    &larr; JONAS LINDSTRÖM photographer [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vlad</title>
		<link>http://www.flipflops.org/2009/09/29/cakephp-menu-helper-for-tree-data/#comment-12459</link>
		<dc:creator>Vlad</dc:creator>
		<pubDate>Tue, 13 Oct 2009 16:38:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.flipflops.org/2009/09/29/cakephp-menu-helper-for-tree-data/#comment-12459</guid>
		<description>2John: every code need to test in your home lab ;-)

$$$$ -&gt; I mean no so -&gt;passedArgs, but url :promo (from first string)
-&gt;option(&#039;url&#039; =&gt; &#039;../../news&#039;);  (for url: http://test.tt://news/........</description>
		<content:encoded><![CDATA[<p>2John: every code need to test in your home lab <img src='http://www.flipflops.org/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>$$$$ -&gt; I mean no so -&gt;passedArgs, but url :promo (from first string)<br />
-&gt;option(&#8216;url&#8217; =&gt; &#8216;../../news&#8217;);  (for url: <a href="http://test.tt://news/......." rel="nofollow">http://test.tt://news/&#8230;&#8230;.</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://www.flipflops.org/2009/09/29/cakephp-menu-helper-for-tree-data/#comment-12456</link>
		<dc:creator>John</dc:creator>
		<pubDate>Tue, 13 Oct 2009 12:46:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.flipflops.org/2009/09/29/cakephp-menu-helper-for-tree-data/#comment-12456</guid>
		<description>Thanks. Do you mean that&#039;ll work with a standard paginator helper? I&#039;ll give that a go when I get home.

J</description>
		<content:encoded><![CDATA[<p>Thanks. Do you mean that&#8217;ll work with a standard paginator helper? I&#8217;ll give that a go when I get home.</p>
<p>J</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vlad</title>
		<link>http://www.flipflops.org/2009/09/29/cakephp-menu-helper-for-tree-data/#comment-12446</link>
		<dc:creator>Vlad</dc:creator>
		<pubDate>Tue, 13 Oct 2009 07:31:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.flipflops.org/2009/09/29/cakephp-menu-helper-for-tree-data/#comment-12446</guid>
		<description>You can try also:

    Router::connect(&#039;/:promo&#039;,array(&#039;controller&#039; =&gt; &#039;posts&#039;,&#039;action&#039; =&gt; &#039;view&#039;),array(&#039;promo&#039; =&gt; &#039;(?!(admin&#124;posts&#124;trees&#124;types)\W+)[a-zA-Z\-_]+&#039;));

Paginator work fine (if you tell him paginator-&gt;option(&#039;url&#039; =&gt; &#039;../../$$$$&#039;)
(where $$$$ = $this-&gt;passedArgs</description>
		<content:encoded><![CDATA[<p>You can try also:</p>
<p>    Router::connect(&#8216;/:promo&#8217;,array(&#8216;controller&#8217; =&gt; &#8216;posts&#8217;,'action&#8217; =&gt; &#8216;view&#8217;),array(&#8216;promo&#8217; =&gt; &#8216;(?!(admin|posts|trees|types)\W+)[a-zA-Z\-_]+&#8217;));</p>
<p>Paginator work fine (if you tell him paginator-&gt;option(&#8216;url&#8217; =&gt; &#8216;../../$$$$&#8217;)<br />
(where $$$$ = $this-&gt;passedArgs</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Flipflops</title>
		<link>http://www.flipflops.org/2009/09/29/cakephp-menu-helper-for-tree-data/#comment-12442</link>
		<dc:creator>Flipflops</dc:creator>
		<pubDate>Mon, 12 Oct 2009 21:56:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.flipflops.org/2009/09/29/cakephp-menu-helper-for-tree-data/#comment-12442</guid>
		<description>Hi Vlad

No you are right - the trouble with the router hack (above) is that it breaks the pagination helper. If you can live with a controller stub /page/ then you don&#039;t need the router hack.

You can build custom routes to cover every instance but it would be a bit of a job... and I can&#039;t think of an example of the top of my head.

I extended the paginator helper to overload the link method like so:

&lt;pre lang=&quot;php&quot; line=&quot;1&quot;&gt;
App::import(&#039;Paginator&#039;);
class JpaginatorHelper extends PaginatorHelper {
	
var $passedArgs = null;


/**
 * Extend the paginator helper and manually build the URL
 *
 * @param  string $title Title for the link.
 * @param  mixed $url Url for the action. See Router::url()
 * @param  array $options Options for the link. See #options for list of keys.
 * @return string A link with pagination parameters.
 */
	function link($title, $url = array(), $options = array()) {
		$options = array_merge(array(&#039;model&#039; =&gt; null, &#039;escape&#039; =&gt; true), $options);
		$model = $options[&#039;model&#039;];
		unset($options[&#039;model&#039;]);

		if (!empty($this-&gt;options)) {
			$options = array_merge($this-&gt;options, $options);
		}
		if (isset($options[&#039;url&#039;])) {
			$url = array_merge((array)$options[&#039;url&#039;], (array)$url);
			unset($options[&#039;url&#039;]);
		}
		$url = $this-&gt;url($url, true, $model);
		$obj = isset($options[&#039;update&#039;]) ? &#039;Ajax&#039; : &#039;Html&#039;;
		$url = array_merge(array(&#039;page&#039; =&gt; $this-&gt;current($model)), $url);
		$url = array_merge(Set::filter($url, true), array_intersect_key($url, array(&#039;plugin&#039;=&gt;true)));
		
		$str = &#039;&#039;;
		
		foreach($this-&gt;passedArgs as $key =&gt; $value){
			if(is_numeric($key)){
			$str .= &#039;/&#039; . $value;
			}
		}
		
		$str .= &#039;/page:&#039; . $url[&#039;page&#039;];

		return $this-&gt;{$obj}-&gt;link($title, $str, $options);
		
	}
}

&lt;/pre&gt;

Example Usage:

&lt;pre lang=&quot;php&quot; line=&quot;1&quot;&gt;
&lt;?php
$jpaginator-&gt;passedArgs = $this-&gt;passedArgs;
 echo $jpaginator-&gt;prev(__(&#039;Previous&#039;, true));?&gt;
&lt;div class=&quot;page-number&quot;&gt;	 	
&lt;?php echo $jpaginator-&gt;numbers();?&gt;
&lt;/div&gt;
&lt;?php echo $jpaginator-&gt;next(__(&#039;Next&#039;, true));?&gt;
&lt;/pre&gt;

Basically it just builds the link normally and appends the page to the end - it will make sense if you compare it with the core pagination helper.

J

p.s. am working on an updated version of the helper.</description>
		<content:encoded><![CDATA[<p>Hi Vlad</p>
<p>No you are right &#8211; the trouble with the router hack (above) is that it breaks the pagination helper. If you can live with a controller stub /page/ then you don&#8217;t need the router hack.</p>
<p>You can build custom routes to cover every instance but it would be a bit of a job&#8230; and I can&#8217;t think of an example of the top of my head.</p>
<p>I extended the paginator helper to overload the link method like so:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">App<span style="color: #339933;">::</span><span style="color: #004000;">import</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Paginator'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">class</span> JpaginatorHelper <span style="color: #000000; font-weight: bold;">extends</span> PaginatorHelper <span style="color: #009900;">&#123;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">var</span> <span style="color: #000088;">$passedArgs</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">null</span><span style="color: #339933;">;</span>
&nbsp;
&nbsp;
<span style="color: #009933; font-style: italic;">/**
 * Extend the paginator helper and manually build the URL
 *
 * @param  string $title Title for the link.
 * @param  mixed $url Url for the action. See Router::url()
 * @param  array $options Options for the link. See #options for list of keys.
 * @return string A link with pagination parameters.
 */</span>
	<span style="color: #000000; font-weight: bold;">function</span> <span style="color: #990000;">link</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$title</span><span style="color: #339933;">,</span> <span style="color: #000088;">$url</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$options</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000088;">$options</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array_merge</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'model'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">null</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'escape'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$options</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$model</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$options</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'model'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
		<span style="color: #990000;">unset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$options</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'model'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">options</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #000088;">$options</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array_merge</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">options</span><span style="color: #339933;">,</span> <span style="color: #000088;">$options</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$options</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'url'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #000088;">$url</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array_merge</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">array</span><span style="color: #009900;">&#41;</span><span style="color: #000088;">$options</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'url'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">array</span><span style="color: #009900;">&#41;</span><span style="color: #000088;">$url</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #990000;">unset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$options</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'url'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
		<span style="color: #000088;">$url</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">url</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$url</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">,</span> <span style="color: #000088;">$model</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$obj</span> <span style="color: #339933;">=</span> <span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$options</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'update'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> ? <span style="color: #0000ff;">'Ajax'</span> <span style="color: #339933;">:</span> <span style="color: #0000ff;">'Html'</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$url</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array_merge</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'page'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">current</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$model</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$url</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$url</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array_merge</span><span style="color: #009900;">&#40;</span>Set<span style="color: #339933;">::</span><span style="color: #004000;">filter</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$url</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #990000;">array_intersect_key</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$url</span><span style="color: #339933;">,</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'plugin'</span><span style="color: #339933;">=&gt;</span>true<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #000088;">$str</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">passedArgs</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$key</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$value</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
			<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">is_numeric</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$key</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
			<span style="color: #000088;">$str</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">'/'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$value</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span>
		<span style="color: #009900;">&#125;</span>
&nbsp;
		<span style="color: #000088;">$str</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">'/page:'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$url</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'page'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #b1b100;">return</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #009900;">&#123;</span><span style="color: #000088;">$obj</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">link</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$title</span><span style="color: #339933;">,</span> <span style="color: #000088;">$str</span><span style="color: #339933;">,</span> <span style="color: #000088;">$options</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>Example Usage:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000088;">$jpaginator</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">passedArgs</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">passedArgs</span><span style="color: #339933;">;</span>
 <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$jpaginator</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">prev</span><span style="color: #009900;">&#40;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Previous'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;div class=&quot;page-number&quot;&gt;	 	
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$jpaginator</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">numbers</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;/div&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$jpaginator</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">next</span><span style="color: #009900;">&#40;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Next'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>Basically it just builds the link normally and appends the page to the end &#8211; it will make sense if you compare it with the core pagination helper.</p>
<p>J</p>
<p>p.s. am working on an updated version of the helper.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vlad</title>
		<link>http://www.flipflops.org/2009/09/29/cakephp-menu-helper-for-tree-data/#comment-12436</link>
		<dc:creator>Vlad</dc:creator>
		<pubDate>Mon, 12 Oct 2009 14:58:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.flipflops.org/2009/09/29/cakephp-menu-helper-for-tree-data/#comment-12436</guid>
		<description>Same problem with $html-&gt;link...

troubles strange - View - http://tree.tt:8888/(?!admin&#124;maps&#124;contacts&#124;pieces&#124;sections&#124;users)(.7/)
but Edit/Delete http://tree.tt:8888/posts/edit/7 &amp; delete/7 

Couldn&#039;t understand why it&#039;s happened. Look for Router manual and couldn&#039;t found anything nice

(you can use me email for more fast contact if wish ;-)</description>
		<content:encoded><![CDATA[<p>Same problem with $html-&gt;link&#8230;</p>
<p>troubles strange &#8211; View &#8211; <a href="http://tree.tt:8888/(?!admin" rel="nofollow">http://tree.tt:8888/(?!admin</a>|maps|contacts|pieces|sections|users)(.7/)<br />
but Edit/Delete <a href="http://tree.tt:8888/posts/edit/7" rel="nofollow">http://tree.tt:8888/posts/edit/7</a> &amp; delete/7 </p>
<p>Couldn&#8217;t understand why it&#8217;s happened. Look for Router manual and couldn&#8217;t found anything nice</p>
<p>(you can use me email for more fast contact if wish <img src='http://www.flipflops.org/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vlad</title>
		<link>http://www.flipflops.org/2009/09/29/cakephp-menu-helper-for-tree-data/#comment-12435</link>
		<dc:creator>Vlad</dc:creator>
		<pubDate>Mon, 12 Oct 2009 14:29:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.flipflops.org/2009/09/29/cakephp-menu-helper-for-tree-data/#comment-12435</guid>
		<description>I&#039;m wrong ;-( doesn&#039;t work.

Couldn&#039;t found solution like your Router:connect but for nice paginate url...</description>
		<content:encoded><![CDATA[<p>I&#8217;m wrong ;-( doesn&#8217;t work.</p>
<p>Couldn&#8217;t found solution like your Router:connect but for nice paginate url&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

