digbot / tree_demo

Tree Demo - Symfony 2 , Doctrine Extension - Tree, jQuery, jsTree

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tree Demo

Welcome to Tree Demo. This solution use Symfony 2 and DoctrineExtensions - Tree. The Thee extension (Doctrine 2) use a nested set implementation in order to store tree data in relational database.

  1. Installing

1.1) First use composer to install all vendor libs.

php composer.phar install

1.2) Setup your database settings in /app/config/parameters.yml

1.3) Generate your database with this command:

php app/console doctrine:schema:create --force

1.4) Optional: Setup you virtual host on apache.

  1. Current implementation

At this time ( version 0.1.0) the following operations are supported: Add node. Edit node. Delete branch (this will remove all sub nodes). Remove node from tree (only this node).

Important Note: The both reset button will truncate your data from database.

What's inside?

Symonfy 2 - standar edition

DoctrineExtensions library

JQuery

JsTree

Twitter Bootstrap

About

Tree Demo - Symfony 2 , Doctrine Extension - Tree, jQuery, jsTree

License:MIT License


Languages

Language:CSS 55.6%Language:JavaScript 31.9%Language:PHP 10.8%Language:HTML 1.3%Language:ApacheConf 0.4%Language:Shell 0.1%