本文整理汇总了PHP中Controller::controller方法的典型用法代码示例。如果您正苦于以下问题:PHP Controller::controller方法的具体用法?PHP Controller::controller怎么用?PHP Controller::controller使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Controller
的用法示例。
在下文中一共展示了Controller::controller方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Login
function Login()
{
parent::controller();
$this->load->library('session');
$this->load->database();
$this->load->model('Kalkun_model');
}
示例2: __construct
public function __construct()
{
parent::controller();
$functionality = $this->config->item('functionality');
if ($functionality['shop'] === false) {
show_404();
}
}
示例3:
function __construct()
{
parent::controller();
$this->login_model->check_login(array_keys($this->login_model->categories));
$this->current_user = $this->session->userdata('logged_in_user');
$this->load->model('data_model');
$this->load->model('news_model');
$this->load->helper('text');
}
示例4: auth
function auth()
{
# We can load other resources here
parent::controller();
# Pre-Auth Check
$this->auth_data = $this->auth->is_authenticated();
$this->token_data = $this->auth_data['token_data'];
if ($this->auth_data['is_authenticated'] == 0) {
$this->is_authenticated = 0;
} else {
$this->is_authenticated = 1;
}
}
示例5:
function __construct()
{
parent::controller();
$this->load->model('Contact_Model');
}
示例6: Delete
function Delete()
{
parent::controller();
$this->load->model("delete_m", "m");
}
示例7: Daemon
function Daemon()
{
// Commented this for allow access from other machine
// if($_SERVER['REMOTE_ADDR']!='127.0.0.1') exit("Access Denied.");
parent::controller();
}
示例9: getInstance
public static function getInstance()
{
if (!isset(self::$controller)) {
self::$controller = new Controller();
}
return self::$controller;
}
示例10:
function __construct()
{
parent::controller();
$this->load->model('Banner_Model');
$this->load->model('Home_Model');
}
示例11:
function __construct()
{
parent::controller();
}
示例12: Backend
function Backend()
{
parent::controller();
$this->load->model("backend_m", "m");
}
示例13: getController
public static function getController(){
if (empty(Controller::$controller)) Controller::$controller = new Controller();
return Controller::$controller;
}