How to setup a maintenance page in cakePHP – this is one of the ways:
Create new model:
Create new controller:
layout = ''; //empty layout - an example //$this->layout = 'header_only'; // I use my header-only layout which shows page header on the top } } ?>
Create new view:
We are currently taking care of your data. Please check back later.
and add following line on the top of
//MAINTENANCE - uncomment when maintenance Router::connect('*', array('controller' => 'offlines', 'action' => 'index'));
When this line is left uncommented then all requests are redirected to the app/views/offlines/index.ctp page.
Hope this helps.
Please LIKE, Share, ReTweet. Thank you.