imsamurai/tree-helper

Helper for building javascript tree from tree data

1.1.4 2014-10-16 12:03 UTC

This package is not auto-updated.

Last update: 2024-12-21 15:29:14 UTC


README

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