be sure to send the correct 503 header too (dp plugin does this) - S
On 30 April 2011 22:46, DigitalDude <[email protected]> wrote: > Hey, > > that's easy: > Simply define a route in your routes.php file like this: > > Router::connect('/*', array('controller' => 'pages', 'action' => > 'display', 'maintenance)); > > Obviously you will need a page in app/views/pages/ called > "maintenance.ctp" where you can display all information you want. > > When you're done with maintenance, simple put a '#' before the route > (to comment it out) and your app will be back in normal mode. > > Regards, > > DD > > On 29 Apr., 20:04, Toby G <[email protected]> wrote: > > Hi there, > > > > I'd like to be able to set a 'catch-all' route or config that allows > > me to direct all site trafic to a maintenance page. Any suggestions > > on the best way to do this? > > > > Thanks, > > > > T > > -- > Our newest site for the community: CakePHP Video Tutorials > http://tv.cakephp.org > Check out the new CakePHP Questions site http://ask.cakephp.org and help > others with their CakePHP related questions. > > > To unsubscribe from this group, send email to > [email protected] For more options, visit this group > at http://groups.google.com/group/cake-php > -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
