Maintenance module
Written by: Maciej Grajcarek
May 1, 2008
Perhaps you have been in a situation when you need to put your cake-based web site in a maintenance mode. Our solution to this problem is very easy and flexible. All you need to do is to download the appropriate module from our svn repository and put files in the proper folders.
Next step is to include the maintenance component in app_controller
var $components = array('Maintenance');
The last thing you have to do is to set parameters in the MaintenanceComponent.
var $active = true; var $redirect = '/maintenance'; var $usePassword = true; var $accessPassword = 'secretPassword';
As you can see, you can easily activate/deactivate maintenance mode and allow the users who know the password access the site.
Also, all access requests to the site from the localhost will be allowed.
Posted in


