Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CodeIgniter - Organizing Controllers into Subfolders
- if ($this->user_model->is_user()) {
- // load this controller
- }
- class Dashboard extends CI_Controller {
- function index()
- {
- //make a check for the user that returns the usergroup:
- $user = $this->user_model->is_user();
- redirect('controller/'.$user.'/'.$user);
- }
- }
- $hook['pre_controller'][] = array(
- 'class' => 'Select',
- 'function' => 'get_usergroup',
- 'filename' => 'Select.php',
- 'filepath' => 'hooks');
Add Comment
Please, Sign In to add comment