Enhances CakePHP scaffolding to bemore aware of Tree Models modelings using the TreeBehavior.
PHP
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Config/Schema
Console/Command/Task
Controller
Lib
Model
Test
Vendor
View
webroot
license.txt
readme.md

readme.md

TreeAwareScaffold Plugin for CakePHP 2

This CakePHP plugin overrides the builtin scaffolding in CakePHP. The plugin hides the lft,rght fields in all scaffold views for TreeBehavior Models. It also generates ordered/indented dropdowns on forms when the belongsTo model implements TreeBehavior.

The TreeAwareScaffold plugin was created as part of a CakePHP tutorial found here to demonstrate how to replace the builtin CakePHP Scaffolding.

Installation

sudo git clone https://github.com/pronique/CakePHP-TreeAwareScaffold app/Plugin/TreeAwareScaffold

//Enable plugin in app/Config/bootstrap.php
CakePlugin::load('TreeAwareScaffold');

Example Usage

Add the following to the top of AppController.php

App::uses('Scaffold', 'TreeAwareScaffold.Controller');
App::uses('ScaffoldView', 'TreeAwareScaffold.View');

That's it!!!! All other scaffolding functionality remains the same.

Requirements

  • PHP version: PHP 5.2+
  • CakePHP version: 2.0+

License

Copyright 2011-2012, PRONIQUE Software

Licensed under The MIT License
Redistributions of files must retain the above copyright notice.


The TreeAwareBehavior plugin for CakePHP is Open Source Software created and managed by PRONIQUE Software.

http://www.pronique.com