Download the PHP package redcode/tree-bundle without Composer
On this page you can find all versions of the php package redcode/tree-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download redcode/tree-bundle
More information about redcode/tree-bundle
Files in redcode/tree-bundle
Package tree-bundle
Short Description This Symfony bundle integrates jsTree and Gedmo Nested Set directly to Sonata Admin
License MIT
Homepage https://github.com/redco/sonata-admin-tree-bundle
Informations about the package tree-bundle
sonata-admin-tree-bundle
This bundle integrates jsTree and Gedmo Nested Set directly to Sonata Admin.
A tree builds itself in an asynchronous way. Hence, it's quite good for big trees.
Installation
Install requirements
SonataAdminBundle
- the SonataAdminBundle provides an installation article here:
http://symfony.com/doc/current/bundles/SonataAdminBundle/index.html
StofDoctrineExtensionsBundle
- then you need to install StofDoctrineExtensionsBundle
https://symfony.com/doc/master/bundles/StofDoctrineExtensionsBundle/index.html
Enable Tree Extension
- nested behaviour will implement the standard Nested-Set behaviour on your Entity
https://github.com/Atlantic18/DoctrineExtensions/blob/master/doc/tree.md
Install TreeBundle
Install it via composer
Register the bundle in your app kernel ./app/AppKernel.php
Add the following lines to the routing file ./app/config/routing.yml
For the entity with enabled Gedmo Nested Set follow these steps:
Extend Admin class from \RedCode\TreeBundle\Admin\AbstractTreeAdmin
Extend AdminController from \RedCode\TreeBundle\Controller\TreeAdminController
When registering the admin as a service, you need to provide a fourth argument - the name of the field that will be shown in the tree.
How it looks like
All versions of tree-bundle with dependencies
stof/doctrine-extensions-bundle Version ^1.2
sonata-project/admin-bundle Version ^3.1