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


PHP CI_Controller::Controller方法代码示例

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


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

示例1: __construct

 public function __construct()
 {
     parent::__construct();
     parent::Controller();
     $this->load->library('form_validation');
     $this->load->model('users', 'user1');
     $this->load->model('sys_email', 'sysemail');
     date_default_timezone_set(SYS_TIMEZONE);
 }
开发者ID:nwtug,项目名称:academia,代码行数:9,代码来源:account.php

示例2: __construct

 public function __construct()
 {
     parent::__construct();
     parent::Controller();
     $this->load->model('sys_email', 'sysemail');
     $this->load->model('class_mod', 'classobj');
     date_default_timezone_set(SYS_TIMEZONE);
     $this->myschool = $this->session->userdata('schoolinfo');
 }
开发者ID:nwtug,项目名称:academia,代码行数:9,代码来源:classes.php

示例3: __construct

 public function __construct()
 {
     parent::Controller();
     //parent::__construct(); //for CI 2.x users
     $this->load->helper('ckeditor');
     //Ckeditor's configuration
     $this->data['ckeditor'] = array('id' => 'content', 'path' => 'js/ckeditor', 'config' => array('toolbar' => "Full", 'width' => "550px", 'height' => '100px'), 'styles' => array('style 1' => array('name' => 'Blue Title', 'element' => 'h2', 'styles' => array('color' => 'Blue', 'font-weight' => 'bold')), 'style 2' => array('name' => 'Red Title', 'element' => 'h2', 'styles' => array('color' => 'Red', 'font-weight' => 'bold', 'text-decoration' => 'underline'))));
     $this->data['ckeditor_2'] = array('id' => 'content_2', 'path' => 'js/ckeditor', 'config' => array('width' => "550px", 'height' => '100px', 'toolbar' => array(array('Bold', 'Italic'), array('Underline', 'Strike', 'FontSize'), array('Smiley'), '/')), 'styles' => array('style 3' => array('name' => 'Green Title', 'element' => 'h3', 'styles' => array('color' => 'Green', 'font-weight' => 'bold'))));
 }
开发者ID:nixwins,项目名称:tesktask,代码行数:9,代码来源:Ckeditor.php

示例4: redirect

	function __construct()
	{
		parent::Controller();
		
		$this->iontank_auth_auth->logged_in() or redirect('/admin/auth/login');
		$this->tank_auth->is_admin() or redirect('admin');
		$this->tank_auth->is_admin() or die(1);
		
		$this->load->library('migrations');

		$this->migrations->set_verbose(TRUE);

		/** VERY IMPORTANT - only turn this on when you need it. */
		show_error('Access to this controller is blocked, turn me on when you need me.');
	}
开发者ID:Nakei,项目名称:FoOlSlide,代码行数:15,代码来源:migrate.php

示例5: redirect

 function __construct()
 {
     parent::Controller();
     $this->load->helper('menu');
     $this->load->model('member');
     $this->load->model('account');
     $this->load->library('session');
     $this->load->helper('url');
     $this->load->helper('danish_date');
     $this->load->helper('date');
     if (!intval($this->session->userdata('id')) > 0) {
         redirect(base_url() . 'index.php/logind');
     }
     $permissions = $this->session->userdata('permissions');
     if (!isset($permissions['credit']) || $permissions['credit'] < 2) {
         redirect(base_url() . 'index.php/logud');
     }
 }
开发者ID:rawbinson,项目名称:membersystem,代码行数:18,代码来源:krediter.php

示例6: Welcome

 /**
  * Index Page for this controller.
  *
  * Maps to the following URL
  * 		http://example.com/index.php/welcome
  *	- or -  
  * 		http://example.com/index.php/welcome/index
  *	- or -
  * Since this controller is set as the default controller in 
  * config/routes.php, it's displayed at http://example.com/
  *
  * So any other public methods not prefixed with an underscore will
  * map to /index.php/welcome/<method_name>
  * @see http://codeigniter.com/user_guide/general/urls.html
  */
 function Welcome()
 {
     parent::Controller();
 }
开发者ID:asaoushine,项目名称:code_igniter_dev,代码行数:19,代码来源:welcome.php

示例7:

 function MY_Controller()
 {
     parent::Controller();
     $this->global_data['Mymenu'] = $this->menu;
     // other common stuff; for example you may want a global cart, login/logout, etc.
 }
开发者ID:facundonegoci,项目名称:mtkstock,代码行数:6,代码来源:My_Controller.php

示例8: Upload

 function Upload()
 {
     parent::Controller();
 }
开发者ID:alvisand,项目名称:Hero2Home,代码行数:4,代码来源:upload.php

示例9:

 function MY_AuthController()
 {
     parent::Controller();
 }
开发者ID:Kandru,项目名称:codeigniter-basic,代码行数:4,代码来源:MY_Controller.php

示例10: Upload

 function Upload()
 {
     parent::Controller();
     $this->load->helper(array('form', 'url'));
 }
开发者ID:kike1,项目名称:beatmusic,代码行数:5,代码来源:upload.php

示例11:

 function _construct()
 {
     parent::Controller();
 }
开发者ID:sithira1992,项目名称:cilogin,代码行数:4,代码来源:email.php

示例12:

 function _consturct()
 {
     parent::Controller();
     $this->load->model('tmhs');
 }
开发者ID:siddharthaghosh,项目名称:recommendation-systems-based-on-personality-traits,代码行数:5,代码来源:home.php

示例13: user

 function user()
 {
     parent::Controller();
 }
开发者ID:pwhsueh,项目名称:voting,代码行数:4,代码来源:user.php

示例14:

 function __construct()
 {
     parent::Controller();
     $this->is_logged_in();
 }
开发者ID:krisalpha,项目名称:DBMSproject,代码行数:5,代码来源:Site.php

示例15: home

 function home()
 {
     parent::Controller();
 }
开发者ID:pwhsueh,项目名称:voting,代码行数:4,代码来源:home.php


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