当前位置: 首页>>代码示例>>PHP>>正文


PHP controller::__construct方法代码示例

本文整理汇总了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();
 }
开发者ID:jayakrishnancn,项目名称:monsterlab,代码行数:7,代码来源:welcome.php

示例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';
 }
开发者ID:vistazp,项目名称:boatseller,代码行数:7,代码来源:signup.php

示例3:

 function __construct()
 {
     parent::__construct();
     session::init();
     session::loginAuth("advertisement");
     $this->breadcrumb->add("Advertisement", "advertisement");
 }
开发者ID:kronxblue,项目名称:1stg,代码行数:7,代码来源:advertisement.php

示例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');
 }
开发者ID:Bobberty,项目名称:68KB,代码行数:14,代码来源:api.php

示例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');
 }
开发者ID:vistazp,项目名称:boatseller,代码行数:7,代码来源:postjob.php

示例6: __construct

 public function __construct()
 {
     parent::__construct();
     if (get_request_method() != 'AJAX') {
         die('error request');
     }
 }
开发者ID:chaobj001,项目名称:tt,代码行数:7,代码来源:ajax_post.php

示例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'));
         }
     }
 }
开发者ID:lzmyoyo,项目名称:ninxingfu,代码行数:32,代码来源:adminController.php

示例8: __construct

 public function __construct()
 {
     parent::__construct();
     include_once $this->config['model'] . 'login.php';
     log_message("info", "model included ");
     $this->model = new loginModel();
 }
开发者ID:jayakrishnancn,项目名称:monsterlab,代码行数:7,代码来源:login.php

示例9: CompanyRepository

 function __construct($params)
 {
     parent::__construct($params);
     $this->companyRepository = new CompanyRepository();
     $this->jobRepository = new JobRepository();
     $this->candidateRepository = new CandidateRepository();
 }
开发者ID:Ferencz8,项目名称:temaphp,代码行数:7,代码来源:companie_controller.php

示例10: __construct

 public function __construct()
 {
     parent::__construct();
     include 'controllers/loginController.php';
     $valida = new login();
     $valida->sessao_valida();
 }
开发者ID:suspecie,项目名称:controle-eventos-php-thepowerpuffgirls,代码行数:7,代码来源:homeController.php

示例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';
 }
开发者ID:vistazp,项目名称:boatseller,代码行数:7,代码来源:terms.php

示例12: __construct

 public function __construct()
 {
     parent::__construct();
     if (empty($_SESSION['auth']) && ACTION_NAME !== 'login') {
         $this->error('跳转至登录页', U('Auth/login'), 3);
     }
 }
开发者ID:PkongStudio,项目名称:Blog,代码行数:7,代码来源:AccessController.class.php

示例13: mhome

 function __construct()
 {
     parent::__construct();
     $this->model = new mhome();
     $this->view = new vhome();
     //echo 'Hello controller';
 }
开发者ID:carlos195,项目名称:template,代码行数:7,代码来源:home.php

示例14: __construct

 public function __construct()
 {
     parent::__construct();
     $this->registry = registry::getInstance();
     $this->html = html::getInstance();
     $this->plugin = plugin::getInstance();
 }
开发者ID:ravenlp,项目名称:CodiceCMS,代码行数:7,代码来源:appcontroller.php

示例15:

 function __construct()
 {
     require 'libs/mark/michelf/markdown.inc.php';
     parent::__construct();
     auth::HandleLogin();
     $this->view->titl = 'Admin area';
     $this->view->canon = 'feedback';
 }
开发者ID:vistazp,项目名称:boatseller,代码行数:8,代码来源:feedback.php


注:本文中的controller::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。