本文整理汇总了PHP中CI_Controller类的典型用法代码示例。如果您正苦于以下问题:PHP CI_Controller类的具体用法?PHP CI_Controller怎么用?PHP CI_Controller使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了CI_Controller类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: get_CI
public static function get_CI()
{
if (Yupii::$CI == NULL) {
$f = CI_Controller::get_instance();
if ($f == NULL) {
$f = new CI_Controller();
}
Yupii::$CI = $f->get_instance();
}
return Yupii::$CI;
}
示例2: __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();
}
示例3:
function __construct()
{
parent::__construct();
$this->load->helper('url');
$this->load->Model('common');
$this->load->Model('product/productmodel', 'product');
}
示例4:
/**
* Index Page for this controller.
*
*/
function __construct()
{
parent::__construct();
$this->load->model('product');
$this->load->model('product_category');
$this->load->model('product_brand');
}
示例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();
if (!$this->session->userdata('logged_in') && $this->session->userdata('privilege') != 'administrator') {
redirect('beranda');
}
}
示例7: __construct
public function __construct()
{
parent::__construct();
$this->load->model('user_model');
$this->load->model('todo_model');
$this->load->model('note_model');
}
示例8: __construct
public function __construct()
{
# code...
parent::__construct();
$this->load->helper(array('form', 'url'));
$this->load->model('project_model');
}
示例9: __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");
}
示例10:
function __construct()
{
parent::__construct();
$this->load->helper(array('form', 'url'));
$this->load->library('session');
$this->load->library('myutil');
}
示例11: __construct
public function __construct()
{
parent::__construct();
// Define model
$this->load->model("Survey_model");
// $this->output->enable_profiler();
}
示例12:
function __construct()
{
parent::__construct();
$this->load->model('sistema/configuracaomodel', 'configuracaoModel');
$this->load->model('sistema/loginmodel', 'loginModel');
$this->loginModel->logged();
}
示例13: __construct
public function __construct()
{
parent::__construct();
$this->load->model('Ativo_model', 'ativo');
$this->load->model('Localizacao_model', 'loc');
$this->load->model('Teste_model', 'teste');
}
示例14: __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();
}
示例15: __construct
public function __construct()
{
parent::__construct();
$this->load->helper(array('url', 'form'));
$this->load->model('login_model');
$this->load->database('default');
}