<?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: Меню с выделением текущего раздела</title>
	<atom:link href="http://php.southpark.com.ua/2008/menu-element/feed/" rel="self" type="application/rss+xml" />
	<link>http://php.southpark.com.ua/2008/menu-element/</link>
	<description>Хитрости и секреты CakePHP</description>
	<lastBuildDate>Wed, 26 May 2010 07:56:40 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: SerB</title>
		<link>http://php.southpark.com.ua/2008/menu-element/comment-page-1/#comment-5530</link>
		<dc:creator>SerB</dc:creator>
		<pubDate>Thu, 04 Feb 2010 12:35:14 +0000</pubDate>
		<guid isPermaLink="false">http://php.southpark.com.ua/2008/menu-element/#comment-5530</guid>
		<description>Сделал как написано, почему то вылазит нотис и ворнинг... хотя все работает, что делать и кто виноват? :)
Notice (8): Undefined variable: items
Warning (2): Invalid argument supplied for foreach()</description>
		<content:encoded><![CDATA[<p>Сделал как написано, почему то вылазит нотис и ворнинг&#8230; хотя все работает, что делать и кто виноват? <img src='http://php.southpark.com.ua/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Notice (8): Undefined variable: items<br />
Warning (2): Invalid argument supplied for foreach()</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hektor</title>
		<link>http://php.southpark.com.ua/2008/menu-element/comment-page-1/#comment-761</link>
		<dc:creator>Hektor</dc:creator>
		<pubDate>Fri, 22 May 2009 18:46:03 +0000</pubDate>
		<guid isPermaLink="false">http://php.southpark.com.ua/2008/menu-element/#comment-761</guid>
		<description>Я в блоге описал основной принцип построения древовидной навигации. Можете посмотреть на странице http://blog.vernart.ru/programming/php/27/
Если будет интересен сам код, то пишите в личку. Попробую помочь.</description>
		<content:encoded><![CDATA[<p>Я в блоге описал основной принцип построения древовидной навигации. Можете посмотреть на странице <a href="http://blog.vernart.ru/programming/php/27/" rel="nofollow">http://blog.vernart.ru/programming/php/27/</a><br />
Если будет интересен сам код, то пишите в личку. Попробую помочь.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hektor</title>
		<link>http://php.southpark.com.ua/2008/menu-element/comment-page-1/#comment-760</link>
		<dc:creator>Hektor</dc:creator>
		<pubDate>Fri, 22 May 2009 18:44:17 +0000</pubDate>
		<guid isPermaLink="false">http://php.southpark.com.ua/2008/menu-element/#comment-760</guid>
		<description>Я в блоге описал основной принцип построения</description>
		<content:encoded><![CDATA[<p>Я в блоге описал основной принцип построения</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dobs</title>
		<link>http://php.southpark.com.ua/2008/menu-element/comment-page-1/#comment-756</link>
		<dc:creator>dobs</dc:creator>
		<pubDate>Fri, 08 May 2009 15:41:55 +0000</pubDate>
		<guid isPermaLink="false">http://php.southpark.com.ua/2008/menu-element/#comment-756</guid>
		<description>Вот мой велосипед))

function menu($val) {
        if ($val == $_SERVER[&quot;REQUEST_URI&quot;])
        	$r = &#039; id=&quot;active&quot;&#039;;
        else
            $r = &#039;&#039;;    
        return $r;
}

function find_url($val) {
		if(eregi($val, $_SERVER[&quot;REQUEST_URI&quot;]))
        	$r = &#039; id=&quot;active&quot;&#039;;
        else
            $r = &#039;&#039;;
        return $r;
}


&lt;a href=&quot;/&quot; rel=&quot;nofollow&quot;&gt;Главная&lt;/a&gt;
&lt;a href=&quot;/portfolio&quot; rel=&quot;nofollow&quot;&gt;Портфолио&lt;/a&gt;
&lt;a href=&quot;/contact_web&quot; rel=&quot;nofollow&quot;&gt;Контакт&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Вот мой велосипед))</p>
<p>function menu($val) {<br />
        if ($val == $_SERVER["REQUEST_URI"])<br />
        	$r = &#8216; id=&#8221;active&#8221;&#8216;;<br />
        else<br />
            $r = &#8221;;<br />
        return $r;<br />
}</p>
<p>function find_url($val) {<br />
		if(eregi($val, $_SERVER["REQUEST_URI"]))<br />
        	$r = &#8216; id=&#8221;active&#8221;&#8216;;<br />
        else<br />
            $r = &#8221;;<br />
        return $r;<br />
}</p>
<p><a href="/" rel="nofollow">Главная</a><br />
<a href="/portfolio" rel="nofollow">Портфолио</a><br />
<a href="/contact_web" rel="nofollow">Контакт</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Дмитрий</title>
		<link>http://php.southpark.com.ua/2008/menu-element/comment-page-1/#comment-690</link>
		<dc:creator>Дмитрий</dc:creator>
		<pubDate>Wed, 24 Sep 2008 23:11:56 +0000</pubDate>
		<guid isPermaLink="false">http://php.southpark.com.ua/2008/menu-element/#comment-690</guid>
		<description>А в чем проблема?

Вариантов два:
1. Выгрести одним запросом всю таблицу и скриптом отсортировать.
2. Выгребать поэтапно - сначала все записи с parent=0, потом шерстить результат выборки и вытаскивать дочерние элементы.</description>
		<content:encoded><![CDATA[<p>А в чем проблема?</p>
<p>Вариантов два:<br />
1. Выгрести одним запросом всю таблицу и скриптом отсортировать.<br />
2. Выгребать поэтапно &#8211; сначала все записи с parent=0, потом шерстить результат выборки и вытаскивать дочерние элементы.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hektor</title>
		<link>http://php.southpark.com.ua/2008/menu-element/comment-page-1/#comment-687</link>
		<dc:creator>Hektor</dc:creator>
		<pubDate>Tue, 23 Sep 2008 20:29:09 +0000</pubDate>
		<guid isPermaLink="false">http://php.southpark.com.ua/2008/menu-element/#comment-687</guid>
		<description>Не могу найти как сообразить древовидную навигацию из таблицы типа
CREATE TABLE `productions` (
               `id` int(11) NOT NULL auto_increment,
               `parent` int(11) default &#039;0&#039;,
               `title` varchar(60) NOT NULL,
               PRIMARY KEY  (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=cp1251

может гуру покажут?</description>
		<content:encoded><![CDATA[<p>Не могу найти как сообразить древовидную навигацию из таблицы типа<br />
CREATE TABLE `productions` (<br />
               `id` int(11) NOT NULL auto_increment,<br />
               `parent` int(11) default &#8216;0&#8242;,<br />
               `title` varchar(60) NOT NULL,<br />
               PRIMARY KEY  (`id`)<br />
) ENGINE=MyISAM DEFAULT CHARSET=cp1251</p>
<p>может гуру покажут?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ring0</title>
		<link>http://php.southpark.com.ua/2008/menu-element/comment-page-1/#comment-681</link>
		<dc:creator>ring0</dc:creator>
		<pubDate>Sun, 07 Sep 2008 14:54:23 +0000</pubDate>
		<guid isPermaLink="false">http://php.southpark.com.ua/2008/menu-element/#comment-681</guid>
		<description>Спасибо, интересный пример. Правда я делал такое не через Routers::url</description>
		<content:encoded><![CDATA[<p>Спасибо, интересный пример. Правда я делал такое не через Routers::url</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Palivoda IT Solutions &#187; Blog Archive &#187; Dynamic menu in CakePHP</title>
		<link>http://php.southpark.com.ua/2008/menu-element/comment-page-1/#comment-585</link>
		<dc:creator>Palivoda IT Solutions &#187; Blog Archive &#187; Dynamic menu in CakePHP</dc:creator>
		<pubDate>Tue, 01 Apr 2008 13:56:38 +0000</pubDate>
		<guid isPermaLink="false">http://php.southpark.com.ua/2008/menu-element/#comment-585</guid>
		<description>[...] by implementation of menu element for CakePHP I found that I require multilevel menus. Furthermore if should fit [...]</description>
		<content:encoded><![CDATA[<p>[...] by implementation of menu element for CakePHP I found that I require multilevel menus. Furthermore if should fit [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Владимир Лучанинов</title>
		<link>http://php.southpark.com.ua/2008/menu-element/comment-page-1/#comment-535</link>
		<dc:creator>Владимир Лучанинов</dc:creator>
		<pubDate>Sat, 23 Feb 2008 23:32:00 +0000</pubDate>
		<guid isPermaLink="false">http://php.southpark.com.ua/2008/menu-element/#comment-535</guid>
		<description>К сожалению, не знаю. Уже месяца 3 как у нас перевёли все проекты на CakePHP 1.2
Там хороший код, можно пользоваться.</description>
		<content:encoded><![CDATA[<p>К сожалению, не знаю. Уже месяца 3 как у нас перевёли все проекты на CakePHP 1.2<br />
Там хороший код, можно пользоваться.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tazman</title>
		<link>http://php.southpark.com.ua/2008/menu-element/comment-page-1/#comment-534</link>
		<dc:creator>Tazman</dc:creator>
		<pubDate>Sat, 23 Feb 2008 23:11:27 +0000</pubDate>
		<guid isPermaLink="false">http://php.southpark.com.ua/2008/menu-element/#comment-534</guid>
		<description>А как переписать данный Element для пирожка 1.1. Просто не хочется бетой пользоваться (пусть подлатают - тогда пересядем ;) )</description>
		<content:encoded><![CDATA[<p>А как переписать данный Element для пирожка 1.1. Просто не хочется бетой пользоваться (пусть подлатают &#8211; тогда пересядем <img src='http://php.southpark.com.ua/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  )</p>
]]></content:encoded>
	</item>
</channel>
</rss>
