本文整理汇总了PHP中MY_Controller::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP MY_Controller::__construct方法的具体用法?PHP MY_Controller::__construct怎么用?PHP MY_Controller::__construct使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MY_Controller
的用法示例。
在下文中一共展示了MY_Controller::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct()
{
parent::__construct();
$this->load->model('house_model');
$this->load->model('financials_model');
$this->load->model('projects_model');
}
示例2:
function __construct()
{
parent::__construct();
$this->load->model('queue_model');
$this->load->library('rest');
Requests::register_autoloader();
}
示例3: __construct
public function __construct()
{
parent::__construct();
$this->load->model('index_model', 'index_model', TRUE);
$this->load->model('upload_model', 'upload_model', TRUE);
$this->data['pelajaran_result'] = $this->index_model->get_pelajaran();
}
示例4: __construct
public function __construct()
{
parent::__construct();
$this->module = 'dashboard';
$this->cname = 'dashboard';
$this->load->model('mdl_grafik', 'mg');
}
示例5:
function __construct()
{
parent::__construct();
$this->no_cache();
$this->load->model('user_modelsupllier');
$this->load->library('session');
}
示例6: __construct
public function __construct()
{
parent::__construct();
$this->load->model('attendance_model');
$this->load->helper('form');
$this->load->library('validation');
}
示例7: __construct
/**
*
*/
public function __construct()
{
parent::__construct();
$this->load->model("usuario_model", "_usuario_model");
$this->load->model("usuario2_model", "_usuario2_model");
$this->load->model("usuario_region_model", "_usuario_region_model");
}
示例8:
function __construct()
{
parent::__construct();
$this->_check_permissions();
$this->form_validation->set_error_delimiters('<p class="help-block">', '</p>');
$this->data['folder_name'] = 'admin/gateways/';
}
示例9:
function __construct()
{
parent::__construct();
$this->session->set_userdata("link_id", "index");
$this->session->set_userdata("linkSub", "visit_management");
$this->session->set_userdata("linkTitle", "Visit Purpose Management");
}
示例10: __construct
public function __construct()
{
parent::__construct();
$this->load->model(array('MOrder', 'MCustomer', 'MWorkflow_log', 'MLocation'));
$this->load->helper(array('money_helper'));
$this->load->library(array('form_validation', 'filter_orders', 'order_split'));
}
示例11: __construct
public function __construct()
{
parent::__construct();
$this->load->database();
$this->load->helper('url');
$this->load->library('session');
}
示例12: __construct
public function __construct()
{
parent::__construct();
$admin_info = $this->session->userdata('admin_session');
$params['admin_info'] = $admin_info;
$this->load->vars($params);
}
示例13: isset
function __construct()
{
parent::__construct();
$this->load->model('penukaran_point_member_model');
$this->load->model('setting_penukaran_point_model');
$this->offset = isset($_POST['start']) ? $this->db->escape_str($this->input->post('start', TRUE)) : 0;
$this->limit = isset($_POST['limit']) ? $this->db->escape_str($this->input->post('limit', TRUE)) : $this->config->item("length_records");
$this->search = isset($_POST['query']) ? $this->db->escape_str($this->input->post('query', TRUE)) : '';
$this->kdMember = isset($_POST['kd_member']) ? $this->db->escape_str($this->input->post('kd_member', TRUE)) : FALSE;
$this->jumlahPointTukar = isset($_POST['jumlah_point_ditukar']) ? $this->db->escape_str($this->input->post('jumlah_point_ditukar', TRUE)) : FALSE;
$this->pointMember = isset($_POST['point_member']) ? $this->db->escape_str($this->input->post('point_member', TRUE)) : FALSE;
$this->tanggal = date('Y-m-d H:i:s');
$this->keterangan = 'keterangan';
$this->createdBy = $this->session->userdata('username');
$this->createdDate = date('Y-m-d H:i:s');
$this->updatedBy = $this->session->userdata('username');
$this->updatedDate = date('Y-m-d H:i:s');
$this->data = isset($_POST['data']) ? json_decode($this->input->post('data', TRUE)) : array();
//generate no bukti
$current_date = date('Ym');
$no_ret = 'TP' . $current_date . '-';
$sequence = $this->penukaran_point_member_model->get_kode_sequence($no_ret, 3);
$this->noBukti = $no_ret . $sequence;
//end of generate no bukti
}
示例14:
function __construct()
{
parent::__construct();
//session_start();
$this->lang->load("title", "english");
$this->load->helper('breadcrumb_helper');
}
示例15: __construct
public function __construct()
{
parent::__construct();
$this->load->helper("url");
$this->load->helper('mail_helper');
$this->load->model("mcontact");
}