morrislaptop / advindex
Installs: 215
Dependents: 0
Suggesters: 0
Security: 0
Stars: 14
Watchers: 3
Forks: 1
Open Issues: 0
Type:cakephp-plugin
Requires
- php: >=5.3.0
- composer/installers: *
This package is auto-updated.
Last update: 2024-11-26 04:54:50 UTC
README
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