public function __construct() { parent::__construct(); parent::Controller(); $this->load->library('form_validation'); $this->load->model('users', 'user1'); $this->load->model('sys_email', 'sysemail'); date_default_timezone_set(SYS_TIMEZONE); }
public function __construct() { parent::__construct(); parent::Controller(); $this->load->model('sys_email', 'sysemail'); $this->load->model('class_mod', 'classobj'); date_default_timezone_set(SYS_TIMEZONE); $this->myschool = $this->session->userdata('schoolinfo'); }
public function __construct() { parent::Controller(); //parent::__construct(); //for CI 2.x users $this->load->helper('ckeditor'); //Ckeditor's configuration $this->data['ckeditor'] = array('id' => 'content', 'path' => 'js/ckeditor', 'config' => array('toolbar' => "Full", 'width' => "550px", 'height' => '100px'), 'styles' => array('style 1' => array('name' => 'Blue Title', 'element' => 'h2', 'styles' => array('color' => 'Blue', 'font-weight' => 'bold')), 'style 2' => array('name' => 'Red Title', 'element' => 'h2', 'styles' => array('color' => 'Red', 'font-weight' => 'bold', 'text-decoration' => 'underline')))); $this->data['ckeditor_2'] = array('id' => 'content_2', 'path' => 'js/ckeditor', 'config' => array('width' => "550px", 'height' => '100px', 'toolbar' => array(array('Bold', 'Italic'), array('Underline', 'Strike', 'FontSize'), array('Smiley'), '/')), 'styles' => array('style 3' => array('name' => 'Green Title', 'element' => 'h3', 'styles' => array('color' => 'Green', 'font-weight' => 'bold')))); }
function __construct() { parent::Controller(); $this->iontank_auth_auth->logged_in() or redirect('/admin/auth/login'); $this->tank_auth->is_admin() or redirect('admin'); $this->tank_auth->is_admin() or die(1); $this->load->library('migrations'); $this->migrations->set_verbose(TRUE); /** VERY IMPORTANT - only turn this on when you need it. */ show_error('Access to this controller is blocked, turn me on when you need me.'); }
function __construct() { parent::Controller(); $this->load->helper('menu'); $this->load->model('member'); $this->load->model('account'); $this->load->library('session'); $this->load->helper('url'); $this->load->helper('danish_date'); $this->load->helper('date'); if (!intval($this->session->userdata('id')) > 0) { redirect(base_url() . 'index.php/logind'); } $permissions = $this->session->userdata('permissions'); if (!isset($permissions['credit']) || $permissions['credit'] < 2) { redirect(base_url() . 'index.php/logud'); } }
/** * Index Page for this controller. * * Maps to the following URL * http://example.com/index.php/welcome * - or - * http://example.com/index.php/welcome/index * - or - * Since this controller is set as the default controller in * config/routes.php, it's displayed at http://example.com/ * * So any other public methods not prefixed with an underscore will * map to /index.php/welcome/<method_name> * @see http://codeigniter.com/user_guide/general/urls.html */ function Welcome() { parent::Controller(); }
function MY_Controller() { parent::Controller(); $this->global_data['Mymenu'] = $this->menu; // other common stuff; for example you may want a global cart, login/logout, etc. }
function Upload() { parent::Controller(); }
function MY_AuthController() { parent::Controller(); }
function Upload() { parent::Controller(); $this->load->helper(array('form', 'url')); }
function _construct() { parent::Controller(); }
function _consturct() { parent::Controller(); $this->load->model('tmhs'); }
function user() { parent::Controller(); }
function __construct() { parent::Controller(); $this->is_logged_in(); }
function home() { parent::Controller(); }
function __construct() { parent::Controller(); $this->load->helper('url'); $this->load->database(); }
function Languagecheck() { parent::Controller(); }
function Email() { parent::Controller(); }