Skip to content
This repository has been archived by the owner on Jun 14, 2023. It is now read-only.

pronique/CakePHP-TreeAwareScaffold

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Enhances CakePHP scaffolding to bemore aware of Tree Models modelings using the TreeBehavior.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages