Ion Auth - Lightweight Auth System based on Redux Auth 2 |
[eluser]kakap[/eluser]
hello, I need help here in using ci+hmvc+ion auth. my simple codes : MY_Controller: (location:application/libraries/MY_Controller.php) Code: <?php (defined('BASEPATH')) OR exit('No direct script access allowed'); Admin_Controller: (location:application/libraries/Admin_Controller.php) Code: <?php (defined('BASEPATH')) OR exit('No direct script access allowed'); admin.php: (location:application/controller/admin.php) Code: <?php (defined('BASEPATH')) OR exit('No direct script access allowed'); when I try to access http://localhost/web/admin/login, the page refresh on and on (I mean always refreshed) I think this is because the condition from Admin_Controller : Code: //check apakah user login I want to ask, how to pass it from the condition ?. I try to see from PyroCMS Admin_Controller, there is stuff like : Code: // These pages get past permission checks but I don't know how to make my own code like that. help me please, thank yo so much. |
Welcome Guest, Not a member yet? Register Sign In |