Maintenance Mode MY_Controller with QUERY_STRING |
Just a simple maintenance mode query string.
MY_Controller.php PHP Code: <?php Then on any controller use extends MY_Controller PHP Code: <?php With the config_item('maintenance') on a config file $config['maintenance'] = FALSE; or TRUE what ever you need. FALSE for off TRUE for on
There's only one rule - please don't tell anyone to go and read the manual. Sometimes the manual just SUCKS!
Thanks for sharing, you could make a small improvement and put in an extra check in your maintenance controller that the maintenance page is only visible when the maintenance is on, if not redirect the users back to the home page.
That way users can press the refresh button and get redirected to the home page when the maintenance is over. Otherwise they keep staring at a maintenance message and keep refreshing forever. |
Welcome Guest, Not a member yet? Register Sign In |