Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dmtrs/ejnestedtreeactions
yii extension for nested set with jstree
https://github.com/dmtrs/ejnestedtreeactions
Last synced: about 2 months ago
JSON representation
yii extension for nested set with jstree
- Host: GitHub
- URL: https://github.com/dmtrs/ejnestedtreeactions
- Owner: dmtrs
- Created: 2010-05-29T12:21:48.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2010-07-08T09:48:05.000Z (over 14 years ago)
- Last Synced: 2024-04-20T19:41:02.210Z (9 months ago)
- Language: PHP
- Homepage: http://www.yiiframework.com/extension/ejnestedtreeactions/
- Size: 312 KB
- Stars: 6
- Watchers: 2
- Forks: 5
- Open Issues: 8
-
Metadata Files:
- Readme: README.txt
- Changelog: CHANGELOG.txt
Awesome Lists containing this project
README
EJNestedTreeActions
==================
Version. *next*
Author: [tydeas_dr](mailto:[email protected])
Author: [Alexander Makarov, Sam Dark](mailto:[email protected])
Copyright © 2010 [Evresis](http://www.evresis.com)What EJNestedTreeActions IS and What IS NOT
-------------------------------------------EJNestedTreeActions IS NOT:
* a nested set behavior for your model
* a jstree extensionEJNestedTreeActions IS only a set of actions and a behavior and you as well need:
* [ENestedSetBehavior extension](http://code.google.com/p/yiiext/source/browse/#svn/trunk/app/extensions/yiiext/behaviors/model/trees)
* [CJstree 1.1 extension](http://www.yiiframework.com/extension/jstree/) *Attention* Cjstree must be at version 1.1 or else won't work[](http://pastebin.com/download.php?i=TH7u2Jqa)
* And of course [jsTree v.0.9.9.a](http://code.google.com/p/jstree/downloads/list)Confused ? MVC
---------------### Model
To make your model act like a nested set you will need the
ENestedSetBehavior, as we said before. This extension make your model to be able
to append,prepend,return the children etc.### View
At view we have the pretty one jstree. To use the jstree you will need the
CJstree extension ( found as jstree extension ).
This will give you the ability to drag & drop, copy & paste, create new nodes etc. at your view.### Controller
This is where EJNestedTreeActions comes.
The jstree has the ability to use async ajax to make request and get results. This async request
will call a controller's action to do so. This is what the EJNestedTreeActions does.
Take the request from the jstree make the appropriate append,prepend, etc for your model and
return data to the jstree.How all this work and the callbacks
-----------------------------------You first create you table and use the ENestedBehavior like it is described in it's documentation.
Use the EJNestedTreeBehavior as described in documentation.
Use CJstree as described in it's documentation.git repository
--------------
To clone project from the github repository:git clone git://github.com/dmtrs/EJNestedTreeActions.git
Thanks
------I would like to thank the CJstree author shocky, the ENestedBehavior author creocoder, samdark, the Evresis team,
the people from #yii at freenode in general and specially Javache for the help on this.###Resources
* [Yii extension site](http://www.yiiframework.com/extension/ejnestedtreeactions/) The yii extension site.
* [Github repository](http://github.com/dmtrs/EJNestedTreeActions/) For the latest version and official issue reporting.
* [Join discussion](http://www.yiiframework.com/forum/index.php?/topic/9434-extension-ejnestedtreeactions/)
All suggestions, contributes, ideas are welcome.