本文整理汇总了PHP中CI_Controller类的典型用法代码示例。如果您正苦于以下问题:PHP CI_Controller类的具体用法?PHP CI_Controller怎么用?PHP CI_Controller使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了CI_Controller类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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;
}
开发者ID:cgarciagl,项目名称:Yupii,代码行数:11,代码来源:Yupii.php
示例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();
}
开发者ID:Clickmycom-TK,项目名称:Funeral,代码行数:7,代码来源:login_fb.php
示例3:
function __construct()
{
parent::__construct();
$this->load->helper('url');
$this->load->Model('common');
$this->load->Model('product/productmodel', 'product');
}
开发者ID:BellyWong,项目名称:razor,代码行数:7,代码来源:authentication.php
示例4:
/**
* Index Page for this controller.
*
*/
function __construct()
{
parent::__construct();
$this->load->model('product');
$this->load->model('product_category');
$this->load->model('product_brand');
}
开发者ID:norain2050,项目名称:one,代码行数:11,代码来源:item.php
示例5: __construct
public function __construct()
{
parent::__construct();
$this->load->model('Periodo_model', 'periodos');
$this->load->library('session');
$this->load->database();
}
开发者ID:Enfoco,项目名称:GIM,代码行数:7,代码来源:periodo.php
示例6: __construct
public function __construct()
{
parent::__construct();
if (!$this->session->userdata('logged_in') && $this->session->userdata('privilege') != 'administrator') {
redirect('beranda');
}
}
开发者ID:ramadhanl,项目名称:medis,代码行数:7,代码来源:Biaya.php
示例7: __construct
public function __construct()
{
parent::__construct();
$this->load->model('user_model');
$this->load->model('todo_model');
$this->load->model('note_model');
}
开发者ID:nandoIII,项目名称:trackngo3,代码行数:7,代码来源:api.php
示例8: __construct
public function __construct()
{
# code...
parent::__construct();
$this->load->helper(array('form', 'url'));
$this->load->model('project_model');
}
开发者ID:hardcao,项目名称:CiProject,代码行数:7,代码来源:Project.php
示例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");
}
开发者ID:azanium,项目名称:Klumbi-Web,代码行数:7,代码来源:leaderboard.php
示例10:
function __construct()
{
parent::__construct();
$this->load->helper(array('form', 'url'));
$this->load->library('session');
$this->load->library('myutil');
}
开发者ID:pool13433,项目名称:ci_mobile,代码行数:7,代码来源:admin.php
示例11: __construct
public function __construct()
{
parent::__construct();
// Define model
$this->load->model("Survey_model");
// $this->output->enable_profiler();
}
开发者ID:almameow,项目名称:lamp_survey,代码行数:7,代码来源:survey.php
示例12:
function __construct()
{
parent::__construct();
$this->load->model('sistema/configuracaomodel', 'configuracaoModel');
$this->load->model('sistema/loginmodel', 'loginModel');
$this->loginModel->logged();
}
开发者ID:CodeInUFPel,项目名称:kenobi,代码行数:7,代码来源:configuracao.php
示例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');
}
开发者ID:raulguilherme10,项目名称:fastInventory,代码行数:7,代码来源:Teste.php
示例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();
}
开发者ID:petersonb,项目名称:ourvigor,代码行数:7,代码来源:profiles.php
示例15: __construct
public function __construct()
{
parent::__construct();
$this->load->helper(array('url', 'form'));
$this->load->model('login_model');
$this->load->database('default');
}
开发者ID:ChiNOO,项目名称:sistema-cepii,代码行数:7,代码来源:login.php
示例16:
function __construct()
{
parent::__construct();
$this->load->library('pagination');
$this->load->model('m_surveyor');
$this->load->model('m_lhs');
}
开发者ID:raflesngln,项目名称:deaspro,代码行数:7,代码来源:surveyor.php
示例17:
function __construct()
{
parent::__construct();
$this->Lang_model->loadLang('admin');
$this->load->helper('file');
$this->load->model('Purview_model');
}
开发者ID:pondyond,项目名称:x6cms,代码行数:7,代码来源:htaccess.php
示例18: __construct
public function __construct()
{
parent::__construct();
// To use site_url and redirect on this controller.
$this->load->helper('url');
$this->load->library('session');
}
开发者ID:jaynael,项目名称:TripSeruDev,代码行数:7,代码来源:order.php
示例19:
function __construct()
{
parent::__construct();
/**
* Forensics Profiler
*
* Enable or disable the forensics profiler.
*/
// $this->output->enable_profiler(false);
$this->output->enable_profiler(true);
/**
* ChromePhp
*
* If class is not auto-loaded, you have to load it here.
*/
//$this->load->library('ChromePhp');
/**
* ChromePhp
*
* This will allow you to specify a path on disk and a uri to access
* a static file that can store json. This allows you to log data
* that is more than 4k.
*/
$this->chromephp->useFile('/home/norman/htdocs/livesets.de/logs/chromelogs', '/data/chromelogs');
}
开发者ID:nmngt,项目名称:NMN-CI-StarterKit,代码行数:25,代码来源:NMN_Controller.php
示例20:
function __construct()
{
parent::__construct();
$this->access->is_logged_in();
$this->load->helper('form');
$this->load->model('m_master_atk', 'mdl', true);
}
开发者ID:spolution,项目名称:alamin,代码行数:7,代码来源:master_atk.php
注:本文中的CI_Controller类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论