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.
sudo git clone https://github.com/pronique/CakePHP-TreeAwareScaffold app/Plugin/TreeAwareScaffold
//Enable plugin in app/Config/bootstrap.php
CakePlugin::load('TreeAwareScaffold');
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.
- PHP version: PHP 5.2+
- CakePHP version: 2.0+
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.