Access Control of Controllers |
I use HMVC,
ONE : how i can route all requests to my_controller/my_method? Quote:requests like : TWO : What is the best way for implement "ACCESS CONTROL" system? i have users and groups tables, defining privileges (any,none,authenticated,authorized,unauthenticated) for menu items and simple link_alias table. is this right way that :
ressan.ir
CI is nice
I'm replying for your second request.
Just create a base controller (MY_controller) in application/core folder. Here its content: PHP Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
And your controllers must extend MY_Controller, not CI_Controller
Code: class one_class extends MY_Controller |
Welcome Guest, Not a member yet? Register Sign In |