本文整理汇总了PHP中controller::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP controller::__construct方法的具体用法?PHP controller::__construct怎么用?PHP controller::__construct使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类controller
的用法示例。
在下文中一共展示了controller::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct()
{
parent::__construct();
include_once $this->config['model'] . 'publicmodel.php';
log_message("info", "public model included ");
$this->actmodel = new publicmodel();
}
示例2:
function __construct()
{
parent::__construct();
$this->view->titl = 'DotNetNow .NET Jobs Board User Signup';
$this->view->canon = 'signup';
$this->view->description = 'Signup for a DotNetNow account to be able to edit and track your ruby jobs post';
}
示例3:
function __construct()
{
parent::__construct();
session::init();
session::loginAuth("advertisement");
$this->breadcrumb->add("Advertisement", "advertisement");
}
示例4:
/**
* Constructor
*
* Requires needed models and helpers.
*
* @access public
*/
function __construct()
{
parent::__construct();
$this->load->model('init_model');
$this->load->model('category_model');
$this->load->model('article_model');
}
示例5: array
function __construct()
{
parent::__construct();
@session_start();
//$this->view->js_code = '<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js" type="text/javascript"></script>';
$this->view->js = array('postjob/js/jquery-1.11.3.min.js', 'postjob/js/default.js', 'postjob/js/jquery.fancybox-1.3.4.pack.js', 'postjob/js/jquery.validate.min.js', 'postjob/js/jquery.fancybox.pack.js?v=2.1.5');
}
示例6: __construct
public function __construct()
{
parent::__construct();
if (get_request_method() != 'AJAX') {
die('error request');
}
}
示例7: __construct
public function __construct()
{
parent::__construct();
$this->title = '宅乐轩ERP管理系统';
$this->style['css'][] = 'public/css/bootstrap.min.css';
$this->style['css'][] = 'public/css/bootstrap-theme.min.css';
$this->style['css'][] = 'public/css/admin/admin.css';
$this->style['js'] = array('public/js/jquery.js', 'public/js/artDialog/jquery.artDialog.js?skin=default', 'public/js/comm.js');
$this->style['js'][] = 'public/js/jquery.dragsort-0.5.2.min.js';
$this->style['js'][] = 'public/js/bootstrap.min.js';
$this->style['js'][] = 'public/js/admin/main.js';
/*
* 过滤后台有些可以不登录即可访问的action.如登录页面,退出页面等等。
*/
$isAdminAuthorization = true;
$adminFiltrateActionArr = utils::c('adminFiltrateAction');
if ($adminFiltrateActionArr) {
$adminFiltrateActionArrKey = array_keys($adminFiltrateActionArr);
$controllerName = request::$controllerName;
if (in_array($controllerName, $adminFiltrateActionArrKey)) {
if (in_array(request::$actionName, $adminFiltrateActionArr[$controllerName])) {
$isAdminAuthorization = false;
}
}
}
if ($isAdminAuthorization) {
$adminUserInfo = $this->checkAdminLogin();
if (!$adminUserInfo) {
$this->tip('你未登录EPR系统,请登录!', utils::getUrl('admin/index/login'));
}
}
}
示例8: __construct
public function __construct()
{
parent::__construct();
include_once $this->config['model'] . 'login.php';
log_message("info", "model included ");
$this->model = new loginModel();
}
示例9: CompanyRepository
function __construct($params)
{
parent::__construct($params);
$this->companyRepository = new CompanyRepository();
$this->jobRepository = new JobRepository();
$this->candidateRepository = new CandidateRepository();
}
示例10: __construct
public function __construct()
{
parent::__construct();
include 'controllers/loginController.php';
$valida = new login();
$valida->sessao_valida();
}
示例11:
function __construct()
{
parent::__construct();
$this->view->titl = 'DotNetNow usage terms page';
$this->view->description = 'DotNetNow usage terms page lists the terms of usage of the site';
$this->view->canon = 'terms';
}
示例12: __construct
public function __construct()
{
parent::__construct();
if (empty($_SESSION['auth']) && ACTION_NAME !== 'login') {
$this->error('跳转至登录页', U('Auth/login'), 3);
}
}
示例13: mhome
function __construct()
{
parent::__construct();
$this->model = new mhome();
$this->view = new vhome();
//echo 'Hello controller';
}
示例14: __construct
public function __construct()
{
parent::__construct();
$this->registry = registry::getInstance();
$this->html = html::getInstance();
$this->plugin = plugin::getInstance();
}
示例15:
function __construct()
{
require 'libs/mark/michelf/markdown.inc.php';
parent::__construct();
auth::HandleLogin();
$this->view->titl = 'Admin area';
$this->view->canon = 'feedback';
}