Created
May 7, 2012 03:15
-
-
Save merk/2625661 to your computer and use it in GitHub Desktop.
Event driven menus
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="nav-collapse"> | |
{{ knp_menu_render('navigation', { | |
'ancestorClass': 'active', | |
'currentClass': 'active' | |
}) }} | |
<form class="pull-right navbar-search action="{# todo search url #}"> | |
<input id="quick-search" type="text" class="search-query span2" placeholder="Search" /> | |
</form> | |
{{ knp_menu_render('right_navigation', { | |
'ancestorClass': 'active', | |
'currentClass': 'active' | |
}) }} | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" ?> | |
<container xmlns="http://symfony.com/schema/dic/services" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd"> | |
<services> | |
<service id="infinite_menu.builder" class="Infinite\MenuBundle\Menu\Menu"> | |
<argument type="service" id="event_dispatcher" /> | |
<argument type="service" id="knp_menu.factory" /> | |
</service> | |
<service id="infinite_menu.menu.navigation" class="Knp\Menu\MenuItem" factory-service="infinite_menu.builder" factory-method="navigation" scope="request"> | |
<argument type="service" id="request" /> | |
<tag name="knp_menu.menu" alias="navigation" /> | |
</service> | |
<service id="infinite_menu.menu.right_navigation" class="Knp\Menu\MenuItem" factory-service="infinite_menu.builder" factory-method="rightNavigation" scope="request"> | |
<argument type="service" id="request" /> | |
<tag name="knp_menu.menu" alias="right_navigation" /> | |
</service> | |
</services> | |
</container> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment