<?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: Creating a routing-based menu in symfony 1.2, part 4: the full package</title>
	<atom:link href="http://blog.vworld.at/2009/04/06/creating-a-routing-based-menu-in-symfony-12-part-4-the-full-package/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.vworld.at/2009/04/06/creating-a-routing-based-menu-in-symfony-12-part-4-the-full-package/</link>
	<description>Software development and software quality</description>
	<lastBuildDate>Thu, 17 Jun 2010 20:00:56 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Tin Nguyen</title>
		<link>http://blog.vworld.at/2009/04/06/creating-a-routing-based-menu-in-symfony-12-part-4-the-full-package/comment-page-1/#comment-9186</link>
		<dc:creator>Tin Nguyen</dc:creator>
		<pubDate>Wed, 12 May 2010 03:23:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.vworld.at/?p=131#comment-9186</guid>
		<description>I have just look through your post about routing-based menu in symfony. May I ask you if your way support internationization. I mean menu&#039;s language could be changed with user. thanks by advanced.</description>
		<content:encoded><![CDATA[<p>I have just look through your post about routing-based menu in symfony. May I ask you if your way support internationization. I mean menu&#8217;s language could be changed with user. thanks by advanced.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sean</title>
		<link>http://blog.vworld.at/2009/04/06/creating-a-routing-based-menu-in-symfony-12-part-4-the-full-package/comment-page-1/#comment-4947</link>
		<dc:creator>Sean</dc:creator>
		<pubDate>Thu, 30 Jul 2009 16:13:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.vworld.at/?p=131#comment-4947</guid>
		<description>Hey, the sfMenuBuilder is still referred to as sfBuilder.

Fatal error: Class &#039;sfBuilder&#039; not found in .../apps/frontend/modules/main/actions/menuComponent.class.php on line 12</description>
		<content:encoded><![CDATA[<p>Hey, the sfMenuBuilder is still referred to as sfBuilder.</p>
<p>Fatal error: Class &#8217;sfBuilder&#8217; not found in &#8230;/apps/frontend/modules/main/actions/menuComponent.class.php on line 12</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kevin</title>
		<link>http://blog.vworld.at/2009/04/06/creating-a-routing-based-menu-in-symfony-12-part-4-the-full-package/comment-page-1/#comment-4820</link>
		<dc:creator>kevin</dc:creator>
		<pubDate>Fri, 24 Jul 2009 11:28:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.vworld.at/?p=131#comment-4820</guid>
		<description>Sorry for the spam,
simple solution : forget about the myUser bit, and sick the content of the getMenu() function directly into the partial:

getRequest()-&gt;getAttribute(&#039;sf_route&#039;);

$routeName = sfContext::getInstance()-&gt;getRouting()-&gt;getCurrentRouteName();
$builder = sfMenuBuilder::initInstance(sfConfig::get(&#039;app_menu_items&#039;), $route, $routeName, &#039;default&#039;);
echo $builder-&gt;renderTree(); // echo $sf_user-&gt;getMenu();

what&#039;s with the myUser escape the html tags?</description>
		<content:encoded><![CDATA[<p>Sorry for the spam,<br />
simple solution : forget about the myUser bit, and sick the content of the getMenu() function directly into the partial:</p>
<p>getRequest()-&gt;getAttribute(&#8217;sf_route&#8217;);</p>
<p>$routeName = sfContext::getInstance()-&gt;getRouting()-&gt;getCurrentRouteName();<br />
$builder = sfMenuBuilder::initInstance(sfConfig::get(&#8216;app_menu_items&#8217;), $route, $routeName, &#8216;default&#8217;);<br />
echo $builder-&gt;renderTree(); // echo $sf_user-&gt;getMenu();</p>
<p>what&#8217;s with the myUser escape the html tags?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kevin</title>
		<link>http://blog.vworld.at/2009/04/06/creating-a-routing-based-menu-in-symfony-12-part-4-the-full-package/comment-page-1/#comment-4819</link>
		<dc:creator>kevin</dc:creator>
		<pubDate>Fri, 24 Jul 2009 11:22:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.vworld.at/?p=131#comment-4819</guid>
		<description>Got it to work... more or less!
So for the REAL newbies like me :

mkdir -p apps/backend/lib/helper/
then move the content of &quot;lib&quot; from the archive to this directory.

Config files :
--- apps/backend/config/app.yml 
all:
  menu:
    items:
      submissions:
        title:   Submissions
      reports:
        title:   Reports
        children:
          reports:
            title:   Default report
          reports_summary:
            title:   Summary report
--- apps/backend/config/routing.yml 
# default rules
(...)

submissions:
  class: sfDoctrineRouteCollection
  options:
    model:                Submissions
    module:               submissions
    prefix_path:          submissions
    column:               id
    with_wildcard_routes: true

reports:
  url:   /reports
  param: { module: reports, action: index }
reports_summary:
  url:   /reports/summary
  param: { module: reports, action: summary }


Added a dummy function in myUser so i can get the menu anytime from anywhere in the app
--- apps/backend/lib/myUser.class.php
getRequest()-&gt;getAttribute(&#039;sf_route&#039;);

        $routeName = sfContext::getInstance()-&gt;getRouting()-&gt;getCurrentRouteName();
        $builder = sfMenuBuilder::initInstance(sfConfig::get(&#039;app_menu_items&#039;), $route, $routeName, &#039;default&#039;);
        return $builder-&gt;renderTree();
    }
}

Because i want this menu to be &quot;global&quot;
--- apps/backend/templates/_menu.php
getMenu(); ?&gt;

--- apps/backend/templates/layout.php
(...)

(...)

et voila! Well almost, i have an issue : the html is escaped so the menu is still unusable, any idea why? :&#124;</description>
		<content:encoded><![CDATA[<p>Got it to work&#8230; more or less!<br />
So for the REAL newbies like me :</p>
<p>mkdir -p apps/backend/lib/helper/<br />
then move the content of &#8220;lib&#8221; from the archive to this directory.</p>
<p>Config files :<br />
&#8212; apps/backend/config/app.yml<br />
all:<br />
  menu:<br />
    items:<br />
      submissions:<br />
        title:   Submissions<br />
      reports:<br />
        title:   Reports<br />
        children:<br />
          reports:<br />
            title:   Default report<br />
          reports_summary:<br />
            title:   Summary report<br />
&#8212; apps/backend/config/routing.yml<br />
# default rules<br />
(&#8230;)</p>
<p>submissions:<br />
  class: sfDoctrineRouteCollection<br />
  options:<br />
    model:                Submissions<br />
    module:               submissions<br />
    prefix_path:          submissions<br />
    column:               id<br />
    with_wildcard_routes: true</p>
<p>reports:<br />
  url:   /reports<br />
  param: { module: reports, action: index }<br />
reports_summary:<br />
  url:   /reports/summary<br />
  param: { module: reports, action: summary }</p>
<p>Added a dummy function in myUser so i can get the menu anytime from anywhere in the app<br />
&#8212; apps/backend/lib/myUser.class.php<br />
getRequest()-&gt;getAttribute(&#8217;sf_route&#8217;);</p>
<p>        $routeName = sfContext::getInstance()-&gt;getRouting()-&gt;getCurrentRouteName();<br />
        $builder = sfMenuBuilder::initInstance(sfConfig::get(&#8216;app_menu_items&#8217;), $route, $routeName, &#8216;default&#8217;);<br />
        return $builder-&gt;renderTree();<br />
    }<br />
}</p>
<p>Because i want this menu to be &#8220;global&#8221;<br />
&#8212; apps/backend/templates/_menu.php<br />
getMenu(); ?&gt;</p>
<p>&#8212; apps/backend/templates/layout.php<br />
(&#8230;)</p>
<p>(&#8230;)</p>
<p>et voila! Well almost, i have an issue : the html is escaped so the menu is still unusable, any idea why? <img src='http://blog.vworld.at/wp-includes/images/smilies/icon_neutral.gif' alt=':|' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kevin</title>
		<link>http://blog.vworld.at/2009/04/06/creating-a-routing-based-menu-in-symfony-12-part-4-the-full-package/comment-page-1/#comment-4818</link>
		<dc:creator>kevin</dc:creator>
		<pubDate>Fri, 24 Jul 2009 10:56:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.vworld.at/?p=131#comment-4818</guid>
		<description>This is GREAT stuff,
but i&#039;m also newbie to symfony and could not get it to work just yet... because i don&#039;t where to put the files!

&quot;The structure is intended for the lib/ folder, the example.php file states how the code could be called – I’m doing this actually inside a helper (MenuHelper.php) in my app’s lib/helper folder.&quot;
-&gt; What&#039;s in MenuHelper.php exactly? confused there...

Anyway, imho this should definitely be a plugin for the community to use! :) so useful!</description>
		<content:encoded><![CDATA[<p>This is GREAT stuff,<br />
but i&#8217;m also newbie to symfony and could not get it to work just yet&#8230; because i don&#8217;t where to put the files!</p>
<p>&#8220;The structure is intended for the lib/ folder, the example.php file states how the code could be called – I’m doing this actually inside a helper (MenuHelper.php) in my app’s lib/helper folder.&#8221;<br />
-&gt; What&#8217;s in MenuHelper.php exactly? confused there&#8230;</p>
<p>Anyway, imho this should definitely be a plugin for the community to use! <img src='http://blog.vworld.at/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  so useful!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Łukasz Wojciechowski</title>
		<link>http://blog.vworld.at/2009/04/06/creating-a-routing-based-menu-in-symfony-12-part-4-the-full-package/comment-page-1/#comment-3661</link>
		<dc:creator>Łukasz Wojciechowski</dc:creator>
		<pubDate>Mon, 22 Jun 2009 14:08:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.vworld.at/?p=131#comment-3661</guid>
		<description>Hi

I like Your articles very much and I decided to use Your solution to implement my 3levels menu.

However I run into a problem.

Lets assume menu defined that way.

menu:
  items:
    homepage:
      title: home page
      children:
        about_us:
          title: about us
          children:
            peoples:
              title: peoples

Now I want to display only level 0 menu (home page link) in my top horizontal navigation (that is easy) and level1 and level2 menu (about us and nested peoples) in my left side vertical navigation.

How can I accomplish that ?

thanks in advance

--
best regards
Łukasz Wojciechowski</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>I like Your articles very much and I decided to use Your solution to implement my 3levels menu.</p>
<p>However I run into a problem.</p>
<p>Lets assume menu defined that way.</p>
<p>menu:<br />
  items:<br />
    homepage:<br />
      title: home page<br />
      children:<br />
        about_us:<br />
          title: about us<br />
          children:<br />
            peoples:<br />
              title: peoples</p>
<p>Now I want to display only level 0 menu (home page link) in my top horizontal navigation (that is easy) and level1 and level2 menu (about us and nested peoples) in my left side vertical navigation.</p>
<p>How can I accomplish that ?</p>
<p>thanks in advance</p>
<p>&#8211;<br />
best regards<br />
Łukasz Wojciechowski</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://blog.vworld.at/2009/04/06/creating-a-routing-based-menu-in-symfony-12-part-4-the-full-package/comment-page-1/#comment-3586</link>
		<dc:creator>David</dc:creator>
		<pubDate>Sat, 20 Jun 2009 08:39:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.vworld.at/?p=131#comment-3586</guid>
		<description>Thanks for pointing this out, I will fix it in the package!</description>
		<content:encoded><![CDATA[<p>Thanks for pointing this out, I will fix it in the package!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hugo</title>
		<link>http://blog.vworld.at/2009/04/06/creating-a-routing-based-menu-in-symfony-12-part-4-the-full-package/comment-page-1/#comment-3474</link>
		<dc:creator>Hugo</dc:creator>
		<pubDate>Wed, 17 Jun 2009 18:19:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.vworld.at/?p=131#comment-3474</guid>
		<description>Hello,

in Example.php I need make 2 updates, for my use.

The error sfBuilder not founded!!

I change sfBuilder for sfMenuBuilder and the finishing... 

Thanks :)

I Install 

Project
	apps
		config
			example_apps.yml (change name for app.yml)
	cache
	config
	data
	doc
	lib
		menu_builder
		resolver
	log
	plugins
	test
	web

And the code of example.php I use in my codes for make the layouts and templates.</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>in Example.php I need make 2 updates, for my use.</p>
<p>The error sfBuilder not founded!!</p>
<p>I change sfBuilder for sfMenuBuilder and the finishing&#8230; </p>
<p>Thanks <img src='http://blog.vworld.at/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I Install </p>
<p>Project<br />
	apps<br />
		config<br />
			example_apps.yml (change name for app.yml)<br />
	cache<br />
	config<br />
	data<br />
	doc<br />
	lib<br />
		menu_builder<br />
		resolver<br />
	log<br />
	plugins<br />
	test<br />
	web</p>
<p>And the code of example.php I use in my codes for make the layouts and templates.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://blog.vworld.at/2009/04/06/creating-a-routing-based-menu-in-symfony-12-part-4-the-full-package/comment-page-1/#comment-2507</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Thu, 14 May 2009 10:41:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.vworld.at/?p=131#comment-2507</guid>
		<description>The structure is intended for the &lt;em&gt;lib/&lt;/em&gt; folder, the example.php file states how the code could be called - I&#039;m doing this actually inside a helper (MenuHelper.php) in my app&#039;s &lt;em&gt;lib/helper&lt;/em&gt; folder.</description>
		<content:encoded><![CDATA[<p>The structure is intended for the <em>lib/</em> folder, the example.php file states how the code could be called &#8211; I&#8217;m doing this actually inside a helper (MenuHelper.php) in my app&#8217;s <em>lib/helper</em> folder.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maksym</title>
		<link>http://blog.vworld.at/2009/04/06/creating-a-routing-based-menu-in-symfony-12-part-4-the-full-package/comment-page-1/#comment-2425</link>
		<dc:creator>Maksym</dc:creator>
		<pubDate>Tue, 12 May 2009 13:58:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.vworld.at/?p=131#comment-2425</guid>
		<description>I am just a beginner in Symfony, and I do not understand something here - for example, how to call examples.php? I&#039;ve put everything according to structure in ZIP, but for now I do not know how to call examples.php.

Another thing - am I correct to put all the structure inside the /apps/frontend/ folder?</description>
		<content:encoded><![CDATA[<p>I am just a beginner in Symfony, and I do not understand something here &#8211; for example, how to call examples.php? I&#8217;ve put everything according to structure in ZIP, but for now I do not know how to call examples.php.</p>
<p>Another thing &#8211; am I correct to put all the structure inside the /apps/frontend/ folder?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
