Welcome Guest, Not a member yet? Register   Sign In
Modules enable / disable from the admin panel and affect on fron side
#1
Exclamation 

Hi,

I would like to develope an admin panel from which superadmin can enable / disable module and that will affect on front end as well. Here is the structure of UI

-----------------------------------------------------------------
Module Name     |     Action     |     Last Updated
-----------------------------------------------------------------
Login                 |    Enable      |   21-02-2016
_________________________________________
Slider                 |    Disable      |   21-02-2016
_________________________________________
Contact Us        |    Enable       |   21-02-2016
_________________________________________

Here are my modules
Login
Slider
Contact Us

and also same name as module name as in front end application.
How can I manage all these stuff, What should be the database structure, How can I check if module enable or disable on every page load?
Kartik Smile
Email : [email protected]
Reply
#2

Table modules

You need to add a database field module_enabled or to the likes, then you can store the information in the database.

you would need to check each module before displaying it to see if it is enabled or not.

The best place to do that would be in a MY_Controller.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB