This plugin provides useful tools for managing a cakephp app.
- Clone/Copy the files in this directory into
app/Plugin/Setup
- Don't forget to include the plugin in your bootstrap's
CakePlugin::load()
statement or useCakePlugin::loadAll()
Tip: You can also use packagist now @ https://packagist.org/packages/dereuromark/setup-cakephp
Currently this plugin contains only the parts I managed to open source yet:
-
My custom bake templates
http://www.dereuromark.de/2010/06/22/cake-bake-custom-templates/ (Part 1) http://www.dereuromark.de/2012/04/24/cake-bake-custom-templates-deluxe/ (Part 2)
-
BaseConfig database configuration class
http://www.dereuromark.de/2012/02/25/dynamic-database-switching/
-
BaseEmailConfig email configuration class (works together with Tools.EmailLib)
http://www.dereuromark.de/2012/03/30/introducing-the-emaillib/
Possible dependencies: Tools Plugin (for bake templates for instance)
Just enable it via
public $components = array('Setup.Setup');
Features:
- Auto create missing tmp folders etc in debug mode (already in core since 2.4 now)
- Catch redirect loops with meaningful exception (will also be logged then)
- Quick-Switch: layout, maintenance, debug, clearcache (password protected in productive mode)
- Notify Admin via Email about self-inflicted 404s or loops (configurable)
and more.
If you have to move, update or just fix the application, an easy way to put the site into maintenance mode is to use the shell for it. Example on how to use it. Contains of:
- Shell (
cake Setup.Maintenance [command]
) - Lib
- (Optional) Setup component to display a flash message for admins in overwrite mode
- CurrentConfig shell
- DbDump shell
- DbMaintenance shell
Use at your own risk. Please provide any fixes or enhancements via issue or better pull request.
The master branch is the currently active and maintained one and works with the current 2.x stable version. Older versions might be found in their respective branches (1.3, 2.0, 2.3, ...). Please provide PRs mainly against master branch then.
Licensed under The MIT License
- One Click Baking
- Complete Configuration and Maintenance Backend
- Coding help / guidelines
- Cleanup and Correction shells
- Testing stuff
- Backup stuff