I use codeigniter latest version. I am building an admin area where can choose to have site on maintenance mode.
The button will be radial. the will click save and will update settings.
What is the best way to create the controller for it. I still would like to be able to view website once logged in to website as I am the administrator.
Use two type of controller one for normal user and one for admin in normal user controller constructor check if the user is logged in than check if the user is admin or not and than if not than load a maintanance view
For eaxample