<?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 Tree Find By Path</title>
	<atom:link href="http://www.bensnider.com/2008/07/24/cakephp-tree-find-by-path/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bensnider.com/2008/07/24/cakephp-tree-find-by-path/</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Mon, 30 Aug 2010 23:21:31 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Mauricio Hafford</title>
		<link>http://www.bensnider.com/2008/07/24/cakephp-tree-find-by-path/comment-page-1/#comment-5573</link>
		<dc:creator>Mauricio Hafford</dc:creator>
		<pubDate>Sun, 23 May 2010 14:21:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.bensnider.com/2008/07/24/cakephp-tree-find-by-path/#comment-5573</guid>
		<description>Hi,I find that your weblog is extremely informative and helpful and we were curious if there can be a possibility of getting More web content like this on your web site. If you willing to aid us out, we would be willing to compensate you... Best wishes, Mauricio Hafford</description>
		<content:encoded><![CDATA[<p>Hi,I find that your weblog is extremely informative and helpful and we were curious if there can be a possibility of getting More web content like this on your web site. If you willing to aid us out, we would be willing to compensate you&#8230; Best wishes, Mauricio Hafford</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: asipo</title>
		<link>http://www.bensnider.com/2008/07/24/cakephp-tree-find-by-path/comment-page-1/#comment-154</link>
		<dc:creator>asipo</dc:creator>
		<pubDate>Fri, 05 Sep 2008 08:50:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.bensnider.com/2008/07/24/cakephp-tree-find-by-path/#comment-154</guid>
		<description>i believe,
your solution...

was already implemented in the cakephp ACL
( not Auth component )
its just, they were for ACL
( but still can use for others i guess )
( i meet the same problem, but the problem was in ACL )
( where User-&gt;Ali and Admin-&gt;Ali, not unique problem )

see the ACL API
you will see the id( ), getparent( ), getpath( ) and getchild( )

then modify the id( $alias )
into id( $alias, $smelly )

where $smelly is the array of path

base on your 
findPath(array(&#039;tv&#039;, &#039;color&#039;), &#039;name&#039;)

i guess it will be about
alias( &#039; tv &#039;, array( &#039; color &#039; ) );
it will return the integer which is &#039;foreign_key&#039;

what bout the &#039;name&#039; ?
well in the ACL its fixed as &#039;foreign_key&#039;
so no need to put a name field for it

finally,
make something like
getpath( alias( &#039; tv &#039;, array( &#039; color &#039; ) ) );
will do the trick i guess

p/s:
this is just a suggestion
i never implement or try those code above yet
but i do believe it can be done...</description>
		<content:encoded><![CDATA[<p>i believe,<br />
your solution&#8230;</p>
<p>was already implemented in the cakephp ACL<br />
( not Auth component )<br />
its just, they were for ACL<br />
( but still can use for others i guess )<br />
( i meet the same problem, but the problem was in ACL )<br />
( where User-&gt;Ali and Admin-&gt;Ali, not unique problem )</p>
<p>see the ACL API<br />
you will see the id( ), getparent( ), getpath( ) and getchild( )</p>
<p>then modify the id( $alias )<br />
into id( $alias, $smelly )</p>
<p>where $smelly is the array of path</p>
<p>base on your<br />
findPath(array(&#8216;tv&#8217;, &#8216;color&#8217;), &#8216;name&#8217;)</p>
<p>i guess it will be about<br />
alias( &#8216; tv &#8216;, array( &#8216; color &#8216; ) );<br />
it will return the integer which is &#8216;foreign_key&#8217;</p>
<p>what bout the &#8216;name&#8217; ?<br />
well in the ACL its fixed as &#8216;foreign_key&#8217;<br />
so no need to put a name field for it</p>
<p>finally,<br />
make something like<br />
getpath( alias( &#8216; tv &#8216;, array( &#8216; color &#8216; ) ) );<br />
will do the trick i guess</p>
<p>p/s:<br />
this is just a suggestion<br />
i never implement or try those code above yet<br />
but i do believe it can be done&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
