Site Maintenance with Modules (WiredDesignz Modular Extension Library) ??? |
[eluser]Devon Lambert[/eluser]
Hello CIers, I am trying to create a maintenance module that I could direct my site to for times when the site is under construction OR coming soon. The idea I had was to check the site's online/offline status via a setting in the DB (a la PyroCMS) in an extended library called Public_Controller. However, whenever I try to redirect to the Modules controller, my site is getting caught in a redirect loop?? Any ideas would be greatly appreciated. Here is the code: Code: // Check the frontend hasnt been disabled by an admin The form controller lives under the construction module so I redirect to construction > form. Form's code is below: Code: class Form extends CI_Controller I originally had the idea of extending the Public_Controller, but thought this may be what was causing the redirect loop, so I've stuck to extending the main CI_Controller, but to no avail. I know that the Form classes code works because I am able to use it as a controller outside of the module heirarchy; i.e. in the Public_Controller I simply redirect to construction and I create a construction class under the Application's controller folder. So I have to assume that something funky is going on with the modules. Thanks and thanks again to anyone is can help with this one. :-) - Devon L.
[eluser]Devon Lambert[/eluser]
[quote author="InsiteFX" date="1291199192"]See this Article. Maintenance Mode InsiteFX[/quote] Thanks Insite. Going to keep trying to do this without using hooks though. I'll report back once I've found something. |
Welcome Guest, Not a member yet? Register Sign In |