本文整理汇总了PHP中CI_Controller::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP CI_Controller::__construct方法的具体用法?PHP CI_Controller::__construct怎么用?PHP CI_Controller::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CI_Controller
的用法示例。
在下文中一共展示了CI_Controller::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct()
{
parent::__construct();
parse_str($_SERVER['QUERY_STRING'], $_REQUEST);
$this->load->library('facebook', array("appId" => '361675743907292', "secret" => '65346749b5c11d2842b322bcc99f247e'));
$this->user = $this->facebook->getUser();
}
示例2:
/**
* Index Page for this controller.
*
*/
function __construct()
{
parent::__construct();
$this->load->model('product');
$this->load->model('product_category');
$this->load->model('product_brand');
}
示例3:
function __construct()
{
parent::__construct();
$this->load->helper('url');
$this->load->Model('common');
$this->load->Model('product/productmodel', 'product');
}
示例4: __construct
public function __construct()
{
parent::__construct();
if (!$this->session->userdata('logged_in') && $this->session->userdata('privilege') != 'administrator') {
redirect('beranda');
}
}
示例5: __construct
public function __construct()
{
parent::__construct();
$this->load->model('Periodo_model', 'periodos');
$this->load->library('session');
$this->load->database();
}
示例6: __construct
public function __construct()
{
parent::__construct();
$this->load->model('achievements_and_rewards_model');
$this->load->model('user_achievements_rewards_model');
$this->load->model('userinfo_model');
}
示例7: __construct
public function __construct()
{
parent::__construct();
$this->load->library(array('form_validation', 'session', 'template_admin', 'template_icon', 'tambahan_fungsi', 'cek_session'));
$this->cek_session->cek_login();
$this->m_checking->module("Contest", "module8", FALSE, TRUE, "home");
}
示例8: __construct
public function __construct()
{
# code...
parent::__construct();
$this->load->helper(array('form', 'url'));
$this->load->model('project_model');
}
示例9:
function __construct()
{
parent::__construct();
$this->load->helper(array('form', 'url'));
$this->load->library('session');
$this->load->library('myutil');
}
示例10: __construct
public function __construct()
{
parent::__construct();
// Define model
$this->load->model("Survey_model");
// $this->output->enable_profiler();
}
示例11:
function __construct()
{
parent::__construct();
$this->load->model('sistema/configuracaomodel', 'configuracaoModel');
$this->load->model('sistema/loginmodel', 'loginModel');
$this->loginModel->logged();
}
示例12: __construct
public function __construct()
{
parent::__construct();
$this->load->model('Ativo_model', 'ativo');
$this->load->model('Localizacao_model', 'loc');
$this->load->model('Teste_model', 'teste');
}
示例13: __construct
public function __construct()
{
parent::__construct();
$this->user_id = $this->user_session->getUserId();
$this->valid_logged_in = $this->user_session->isValidLoggedIn();
$this->logged_in = $this->user_session->isLoggedIn();
}
示例14:
function __construct()
{
parent::__construct();
$this->load->library('pagination');
$this->load->model('m_surveyor');
$this->load->model('m_lhs');
}
示例15: __construct
public function __construct()
{
parent::__construct();
$this->load->helper(array('url', 'form'));
$this->load->model('login_model');
$this->load->database('default');
}