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. |
Messages In This Thread |
Site Maintenance with Modules (WiredDesignz Modular Extension Library) ??? - by El Forum - 11-30-2010, 08:39 PM
Site Maintenance with Modules (WiredDesignz Modular Extension Library) ??? - by El Forum - 11-30-2010, 10:26 PM
Site Maintenance with Modules (WiredDesignz Modular Extension Library) ??? - by El Forum - 11-30-2010, 11:55 PM
|