public function __construct() { parent::__construct(); $this->load->helper('load_controller'); //$this->load->libraries('load_controller'); $this->load->helper('load_model'); }
function __construct() { // this is your constructor parent::__construct(); session_start(); $this->load->model('admin/users_model'); }
public function __construct() { parent::__construct(); $this->acl->auth('product'); $this->load->library('grocery_CRUD'); $this->load->model('ModProduct'); }
public function __construct() { parent::__construct(); Modules::run('login/is_logged_in'); $this->load->model('view'); $this->load->config('config'); }
public function __construct() { parent::__construct(); $this->load->model('Mkematian'); $this->load->model('Mwarga'); $this->load->model('Mkartukeluarga'); }
public function __construct() { parent::__construct(); $this->acl->auth('warehouse'); $this->load->library('grocery_CRUD'); $this->load->model('ModWarehouse'); }
function __construct() { parent::__construct(); $this->load->library('Auth'); $this->load->library('form_validation'); $this->base_uri = $this->config->item('base_url'); }
function __construct() { parent::__construct(); $this->global_model->config(); $this->load->model('sender_model'); $this->load->library('form_validation'); }
function __construct() { parent::__construct(); // check user is logged in, if not send them away from this controller if (!$this->session->userdata('session_user')) { redirect('/users/login/' . $this->core->encode($this->uri->uri_string())); } // get site permissions and redirect if it don't have access to this module if (!$this->permission->sitePermissions) { show_error('You do not have permission to view this page'); } if (!in_array('community', $this->permission->sitePermissions)) { show_error('You do not have permission to view this page'); } // get siteID, if available if (defined('SITEID')) { $this->siteID = SITEID; } // load libs etc $this->load->library('tags'); $this->load->model('community_model', 'community'); $this->load->model('messages_model', 'messages'); $this->load->model('users_model', 'users'); // load modules $this->load->module('pages'); }
public function __construct() { parent::__construct(); $this->create_view_controller(); $this->create_validation_controller(); $this->create_model(); }
function sucursales() { parent::__construct(); $this->load->model('inicio/data_model'); $this->load->model('ofertas/ofertas_model'); $this->load->model('sucursales_model'); }
function __construct() { parent::__construct(); $this->load->model('site/site_model'); $this->load->model('administration/reports_model'); $this->load->model('admin/users_model'); $this->load->model('admin/sections_model'); $this->load->model('admin/admin_model'); $this->load->model('payroll_model'); $this->load->model('hr/personnel_model'); $this->load->model('admin/branches_model'); $this->load->model('petty_cash_model'); $this->load->model('accounts_model'); $this->load->model('nurse/nurse_model'); $this->load->model('reception/reception_model'); $this->load->model('reception/database'); $this->load->model('medical_admin/medical_admin_model'); $this->load->model('pharmacy/pharmacy_model'); $this->load->model('hospital_accounts_model'); $this->load->model('administration/sync_model'); //$this->load->model('administration/personnel_model'); $this->load->model('auth/auth_model'); if (!$this->auth_model->check_login()) { redirect('login'); } }
function __construct() { parent::__construct(); // Not truely required as it should be auto-loaded $this->load->library('cms_locale'); $this->template['module'] = "language"; }
public function __construct() { parent::__construct(); $this->load->library('administrator'); $this->load->model('session_model'); requirePermission("viewSessions"); }
public function __construct() { parent::__construct(); $this->acl->auth('credit'); $this->load->model('ModCredit'); // $this->status = [0 => "pending", 1 => "terbayar"]; }
function __construct() { parent::__construct(); $this->access_library_siam->is_logged_in(); $this->load->model('akad_model'); $this->load->model('sirak_akademik/sirak_akad_model'); }
public function __construct() { parent::__construct(); $this->load->module('utilities/utils'); $this->load->model('gestionriesgos_model','riesgos'); $this->load->model('general/general_model','general'); }
function __construct() { parent::__construct(); $this->load->database(); $this->load->model('pengaturan/satuan_model', 'satuan'); //$this->lang->load('pengaturan/satuan'); }
function __construct() { parent::__construct(); $this->load->Model('Mdl_profiles'); // $this->load->helper(array('form','url','language')); $this->load->library('upload'); }
function __construct() { parent::__construct(); $this->load->database(); $this->form_validation->set_error_delimiters($this->config->item('error_start_delimiter', 'ion_auth'), $this->config->item('error_end_delimiter', 'ion_auth')); $this->lang->load('auth'); }
public function __construct() { parent::__construct(); $this->output->set_header("Cache-Control: no-store, no-cache, must-revalidate, no-transform, max-age=0, post-check=0, pre-check=0"); $this->output->set_header("Pragma: no-cache"); $this->load->model('noise_model'); if ($this->auth->is_logged() == FALSE) { $this->status_login = "******"; $this->key_activation = $this->generate_key(20); } else { $this->status_login = "******"; } // LOAD LIBRARY SLUG $config = array('table' => 'notion', 'id' => 'id_notion', 'field' => 'slug', 'title' => 'title', 'replacement' => 'dash'); $this->load->library('slug', $config); ## FECHA date_default_timezone_set('UTC'); $timestamp = now(); $timezone = 'UM5'; $daylight_saving = false; $now = gmt_to_local($timestamp, $timezone, $daylight_saving); $datestring = "%Y-%m-%d %h:%i:%s"; $this->now = mdate($datestring, $now); //$this->name_country = $this->country->ip_info('Visitor', 'Country'); //$this->code_country = $this->country->ip_info("Visitor", "Country Code"); $this->name_country = 'PERU'; $this->code_country = 'PE'; //$this->state = $this->country->ip_info('181.66.157.144', 'State'); }
public function __construct() { parent::__construct(); $this->is_logged_in(); $this->load->model('proyectos/proyecto_model'); $this->load->model('cotizaciones/cotizaciones_model'); }
function __construct($base_load = true) { parent::__construct(); //$this->output->enable_profiler(TRUE); $CI =& get_instance(); $CI->redirect = FALSE; $this->load->helper('url'); $this->load->model('login/mlogin'); if (!$this->mlogin->isAutorize()) { redirect('login'); } else { $this->config->load('menu_config'); if ($base_load) { $this->_setBaseHtml(); } } if ($this->uri->segment(1) != 'login') { $module = FALSE; if ($this->uri->segment(2)) { $module = $this->uri->segment(2); } $action = FALSE; if ($this->uri->segment(3)) { $action = $this->uri->segment(3); } if ($module) { if (!$this->check_system_permission($module, $action)) { echo "You don't have permission!"; die; } } } }
function __construct() { parent::__construct(); $this->load->library('flexigrid'); $this->load->helper('flexigrid'); //$this->load->model($this->module.'/'.$this->file_name.'_model', 'main'); }
function __construct() { parent::__construct(); $this->auth->getAcl(); $this->auth->checkLogin(); $this->load->library('grocery_CRUD'); }
public function __construct() { parent::__construct(); $this->load->model('mbarangjasa'); $this->load->model('mberita'); $this->load->library('pagination'); }
function __construct() { date_default_timezone_set('Asia/Calcutta'); parent::__construct(); $this->load->Model('Mdl_users'); $this->load->Model('sellers/Mdl_sellers'); }
function modernizate() { parent::__construct(); $this->load->model('inicio/data_model'); $this->load->model('noticias/blog_model'); $this->load->model('ofertas/ofertas_model'); }
public function __construct() { parent::__construct(); Modules::run('users/index'); $forgroups = array(); Modules::run('users/in_groups', $forgroups); }
function __construct() { date_default_timezone_set('Asia/Calcutta'); parent::__construct(); $this->load->Model('Mdl_products'); /*$this->load->Model('Mdl_categories');*/ }