Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class My_Controller extends CI_Controller{
- }
- class LOG_Controller extends My_Controller{
- }
- class NOLOG_Controller extends My_Controller{
- }
- ?>
- class My_Controller extends CI_Controller {
- // do something clever here
- }
- // do something even more clever here ...
- require_once("application/core/tool_controller.php");
- class MY_Controller extends CI_Controller
- {
- public function __construct() {
- parent::__construct();
- if ( !$this->ion-auth->loggedin() ) {
- redirect('auth/login');
- }
- }
- }
- class Secure extends MY_Controller
- {
- function __construct() {
- parent::__construct();
- }
- }
- class Insecure extends CI_Controller
- {
- function __construct() {
- parent::__construct();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement