stiti/nestedmenubundle

Nested Menu Symfony Bundle

Installs: 35

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 3

Forks: 0

Open Issues: 0

Language:JavaScript

Type:symfony-bundle

1.0.x-dev 2016-11-03 10:28 UTC

This package is not auto-updated.

Last update: 2025-01-27 14:33:26 UTC


README

Welcome to NestedMenuBundle - a Symfony bundle to create a nested menu

Admin Nested Menu Edit Item Delete Item

Installation

Step 1: Download the Bundle


Open a command console, enter your project directory and execute the
following command to download the latest stable version of this bundle:


    $ composer require stiti/nestedmenubundle 1.0.x-dev


Step 2: Enable the Bundle
Then, enable the bundle by adding the following line in the ````app/AppKernel.php````
file of your project:

~~~~~~~~~~~~~~~~~~~~~~~~~

    <?php
    // app/AppKernel.php

    // ...
    class AppKernel extends Kernel
    {
        public function registerBundles()
        {
            $bundles = array(
                // ...

                new NestedMenuBundle\NestedMenuBundle(),
            );

            // ...
        }

        // ...
    }

Step 3: update schema

    php bin/console doctrine:schema:update --force
~~~~~~~~~~~~~~~~~~~~~~~~~

Step 4: install assets

    php bin/console assets:install
~~~~~~~~~~~~~~~~~~~~~~~~~

Step 5:foad Fixtures with DoctrineFixturesBundle

    php bin/console doctrine:fixtures:load


Usage

In your template twig insert this code
![Frontend Nested Menu](http://i.imgur.com/VE7YKdR.jpg)

    {{ nestedMenu() }}

import routing file in your project

nested_menu:
    resource: "@NestedMenuBundle/Resources/config/routing.yml"
    prefix: /


activate Serializer Component in config.yml

    serializer:      { enable_annotations: true }

Administration Menu :

http://MY_PROJECT/menuNested