2017 © Pedro Peláez
 

library navigation-bundle

Navigation bundle for Symfony2

image

prime/navigation-bundle

Navigation bundle for Symfony2

  • Sunday, April 2, 2017
  • by leviothan
  • Repository
  • 1 Watchers
  • 0 Stars
  • 139 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 4 % Grown

The README.md

PrimeNavigationBundle

Install

Add PrimeNavigationBundle to your composer.json, (*1)

"require": {
    "prime/navigation-bundle": "dev-v2.0-beta"
}

Enable bundle

Add bundle to AppKernel, (*2)

``` php <?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Prime\NavigationBundle\PrimeNavigationBundle(), ); }, (*3)


### Create your first navigation ``` php <?php // src/AppBundle/Navigation/MainNavigation.php namespace AppBundleBundle\Navigation; class MainNavigation { public function build() { return array( array( 'label' => 'Page #1', 'route' => 'route_homepage' ), array( 'label' => 'Page #2', 'route' => 'route_page', 'routeParameters => array('slug' => 'page_2') ), ); } }

Render navigation

{{ navigation('AppBundle:Navigation:Main') }}

Configuration

``` yaml // app/config.yml, (*4)

prime_navigation: template: 'PrimeNavigationBundle:Navigation:simple.html.twig' breadcrumbs_template: 'PrimeNavigationBundle:Navigation:breadcrumbs.html.twig' ```, (*5)

The Versions

02/04 2017

dev-master

9999999-dev

Navigation bundle for Symfony2

  Sources   Download

MIT

The Requires

 

by Avatar leviothan

12/01 2017

dev-v2.0-beta

dev-v2.0-beta

Navigation bundle for Symfony2

  Sources   Download

MIT

The Requires

 

by Avatar leviothan

23/02 2015

v1.0

1.0.0.0

Simple menu bundle for Symfony2

  Sources   Download

MIT

The Requires

 

by Avatar leviothan