Skip to content

morrislaptop/advindex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Advanced index views and operations for CakePHP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published