You can look into https://github.com/awebdeveloper/cakephp-maintenance-mode
On Tuesday, 6 September 2011 01:15:20 UTC+5:30, Xoubaman wrote: > > I'm trying to implement a system to disable the site temporaly for > maintenance purposes or whatever. If the site is disabled, only logged > users can navigate through it, non-logged users are redirected to a "Site > under maintenance" layout. > > Currently (o "As of now"), my approach is to allow a "secret url" that > will lead to the login form, check in AppController::beforefilter if the > current url is the allowed one and, if it isn't, set the maintenance > layout. Trying to figure out how to allow only one url to log in, I came to > define it as a constant in bootstrap and add the route in config/routes > pointing to UsersController::login. > > It would be nice to save the secret url into the database and change it > without editing bootstrap.php, though. > > Any suggestion? > > > -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/groups/opt_out.