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


PHP controller::controller方法代码示例

本文整理汇总了PHP中controller::controller方法的典型用法代码示例。如果您正苦于以下问题:PHP controller::controller方法的具体用法?PHP controller::controller怎么用?PHP controller::controller使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在controller的用法示例。


在下文中一共展示了controller::controller方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: header

 function __construct()
 {
     parent::controller();
     parent::database();
     parent::module('models', 'models_auth', 'culck');
     header('Content-type: application/json');
 }
开发者ID:ovarz,项目名称:cobablue,代码行数:7,代码来源:login.php

示例2: EmailSettings

 function EmailSettings()
 {
     parent::controller();
     //Check For Admin Logged in
     if (!isAdmin()) {
         redirect_admin('login');
     }
     //Get Config Details From Db
     $this->config->db_config_fetch();
     //Debug Tool
     //$this->output->enable_profiler=true;
     // loading the lang files
     $this->lang->load('admin/common', $this->config->item('language_code'));
     $this->lang->load('admin/setting', $this->config->item('language_code'));
     $this->lang->load('admin/validation', $this->config->item('language_code'));
     //Load Models Common to all the functions in this controller
     $this->load->model('common_model');
 }
开发者ID:khanals,项目名称:rbs-ext,代码行数:18,代码来源:emailSettings.php

示例3: set

 /**
  * This method sets the Controller and run it.
  * @param type $controller
  * @return boolean
  * @throws Exception
  * @version 14.11.2014
  */
 public static function set($controller = "")
 {
     if (empty($controller)) {
         $controller = "index";
     }
     // For security purposes, we will add additional validation
     // on user input.
     if (!preg_match("/[-_0-9a-z]{2,15}/u", $controller)) {
         throw new Exception(_("Controller parameter is not valid."));
     }
     // Take Controller name into the Configuration:
     config::set("controller", $controller);
     // If the script founds selected controller (must begin with "controller_":
     if (!function_exists("controller_" . $controller)) {
         throw new Exception(_("Controller is not found."));
     }
     self::$controller = $controller;
     $ControllerName = "controller_" . $controller;
     return $ControllerName();
 }
开发者ID:nongrata-volgmed,项目名称:imcms4,代码行数:27,代码来源:controller.php

示例4:

 function __construct()
 {
     parent::controller();
 }
开发者ID:kguide,项目名称:hugbv1-treasurehunt,代码行数:4,代码来源:myPage.php

示例5:

 function __construct()
 {
     parent::controller();
     $this->load->model('prefs_model');
 }
开发者ID:TheYorkerArchive,项目名称:codebase-2006-2012,代码行数:5,代码来源:account.php

示例6:

 function __construct()
 {
     parent::controller();
     $this->load->model('directory_model');
     $this->load->library('Image_upload');
 }
开发者ID:TheYorkerArchive,项目名称:codebase-2006-2012,代码行数:6,代码来源:organisation.php

示例7:

 function __construct()
 {
     parent::controller();
     parent::module('helpers', 'functions_validate_helpers');
 }
开发者ID:ovarz,项目名称:cobablue,代码行数:5,代码来源:views.php

示例8:

 function __construct()
 {
     parent::controller();
     $this->load->helper('googlemaps');
 }
开发者ID:TheYorkerArchive,项目名称:codebase-2006-2012,代码行数:5,代码来源:googlemaps.php


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