imsamurai / tree-helper
Helper for building javascript tree from tree data
Installs: 25
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 2
Forks: 0
Open Issues: 0
Type:cakephp-plugin
Requires
This package is not auto-updated.
Last update: 2024-12-21 15:29:14 UTC
README
Check out TreeHelper API Documentation
Abstract
Helper for building javascript tree from tree data
Installation
cd my_cake_app/app
git clone git://github.com/imsamurai/CakePHP-TreeHelper.git Plugin/TreeHelper
or if you use git add as submodule:
cd my_cake_app
git submodule add "git://github.com/imsamurai/CakePHP-TreeHelper.git" "app/Plugin/TreeHelper"
then add plugin loading in Config/bootstrap.php
CakePlugin::load('TreeHelper');
Usage
Add helper to controller
$helpers = array('TreeHelper.Tree');
Build tree
echo $this->Tree->jqueryTree($data, $options);