Skip to content
Advanced index views and operations for CakePHP
PHP JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
Config
Controller
Vendor
View
webroot
README.md
bootstrap.php.example
composer.json

README.md

Advanced Index

Advanced scaffolding which allows searching and exporting / importing of your models.. For CakePHP 2

Installation

Add the repo to your working directory

git submodule add https://github.com/morrislaptop/advindex app/Plugin/Advindex

Add the following to app/Config/bootstrap.php

CakePlugin::load('Advindex');

Add the following to the top of AppController.php

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

Include the following in your controller:

public $helpers = array('Advindex.Advindex');
public $components = array('Advindex.Advindex');
public $scaffold = 'admin';

Finally, check you have your routing prefix enabled in app/Config/core.php

Configure::write('Routing.prefixes', array('admin'));

Configuration

See the bootstrap.php.example file to configure the scaffolding for each of your models

Getting the advindex layout in other plugins

function beforeFilter() {
        if ( !empty($this->params['admin']) ) {
        $this->layout = 'Advindex.default';
    }
}

Credits

For migration to CakePHP 2 - http://www.pronique.com/blog/how-to-create-your-own-scaffolding-plugin-for-cakephp2

Something went wrong with that request. Please try again.