Skip to content

imsamurai/CakePHP-TreeHelper

Repository files navigation

API Documentation

Check out TreeHelper API Documentation

Abstract

Build Status Coverage Status Latest Stable Version Total Downloads Latest Unstable Version License

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);

About

Make simple flexible javascript tree with expand/collaps nodes and search

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages