當前位置: 首頁>>代碼示例>>PHP>>正文


PHP CI::APP方法代碼示例

本文整理匯總了PHP中CI::APP方法的典型用法代碼示例。如果您正苦於以下問題:PHP CI::APP方法的具體用法?PHP CI::APP怎麽用?PHP CI::APP使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在CI的用法示例。


在下文中一共展示了CI::APP方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: __construct

	public function __construct() {

		/* assign the application instance */
		self::$APP = $this;

		/* re-assign language and config for modules */
		if ( ! is_a($this->lang, 'MX_Lang')) $this->lang = new MX_Lang;
		if ( ! is_a($this->config, 'MX_Config')) $this->config = new MX_Config;

		parent::__construct();
	}
開發者ID:JamieLomas,項目名稱:pyrocms,代碼行數:11,代碼來源:Base.php

示例2: __construct

 public function __construct()
 {
     self::$APP = CI_Base::get_instance();
     /* assign the core loader */
     self::$APP->load = new MX_Loader();
     /* re-assign language and config for modules */
     if (!is_a(self::$APP->lang, 'MX_Lang')) {
         self::$APP->lang = new MX_Lang();
     }
     if (!is_a(self::$APP->config, 'MX_Config')) {
         self::$APP->config = new MX_Config();
     }
 }
開發者ID:hqye,項目名稱:stblog,代碼行數:13,代碼來源:Ci.php

示例3: __construct

 public function __construct()
 {
     /* assign the application instance */
     self::$APP = CI_Controller::get_instance();
     global $LANG, $CFG;
     /* re-assign language and config for modules */
     if (!$LANG instanceof HMVC_Lang) {
         $LANG = new HMVC_Lang();
     }
     if (!$CFG instanceof HMVC_Config) {
         $CFG = new HMVC_Config();
     }
 }
開發者ID:adamos42,項目名稱:ionize,代碼行數:13,代碼來源:Ci.php

示例4: __construct

 public function __construct()
 {
     /* assign the application instance */
     self::$APP = CI_Controller::get_instance();
     global $LANG, $CFG;
     /* re-assign language and config for modules */
     if (!is_a($LANG, 'MX_Lang')) {
         $LANG = new MX_Lang();
     }
     if (!is_a($CFG, 'MX_Config')) {
         $CFG = new MX_Config();
     }
 }
開發者ID:darkwebside,項目名稱:Sprint,代碼行數:13,代碼來源:Ci.php

示例5: __construct

	public function __construct() {
		
		self::$APP = CI_Controller::get_instance();

		/* assign the core loader */
		self::$APP->load = new MX_Loader;

		/* re-assign language and config for modules */
		if ( ! is_a(self::$APP->lang, 'MX_Lang')) self::$APP->lang = new MX_Lang;
		if ( ! is_a(self::$APP->config, 'MX_Config')) self::$APP->config = new MX_Config;

		/* autoload module items */
		self::$APP->load->_autoloader(array());
	}
開發者ID:reith2004,項目名稱:pyrocms,代碼行數:14,代碼來源:Ci.php

示例6: __construct

 public function __construct()
 {
     /* assign the application instance */
     self::$APP = $this;
     global $LANG, $CFG;
     /* re-assign language and config for modules */
     if (!$LANG instanceof HMVC_Lang) {
         $LANG = new HMVC_Lang();
     }
     if (!$CFG instanceof HMVC_Config) {
         $CFG = new HMVC_Config();
     }
     parent::__construct();
 }
開發者ID:adamos42,項目名稱:ionize,代碼行數:14,代碼來源:Base.php

示例7: __construct

 public function __construct()
 {
     parent::__construct();
     /* assign the application instance */
     self::$APP = $this;
     /* assign the core loader */
     $this->load = new CI_Loader();
     /* the core classes */
     $classes = array('config' => 'Config', 'input' => 'Input', 'benchmark' => 'Benchmark', 'uri' => 'URI', 'output' => 'Output', 'lang' => 'Language', 'router' => 'Router');
     /* assign the core classes */
     foreach ($classes as $key => $class) {
         $this->{$key} = load_class($class);
     }
     /* autoload application items */
     $this->load->_ci_autoloader();
 }
開發者ID:arunoda-susiripala,項目名稱:Code51,代碼行數:16,代碼來源:Controller.php

示例8: __construct

 public function __construct()
 {
     /* assign the application instance */
     self::$APP = MY_Controller::get_instance();
     global $LANG, $CFG;
     /* re-assign language and config for modules */
     // Modified by Ivan Tcholakov, 28-SEP-2012.
     //if ( ! is_a($LANG, 'MX_Lang')) $LANG = new MX_Lang;
     //if ( ! is_a($CFG, 'MX_Config')) $CFG = new MX_Config;
     if (@(!is_a($LANG, 'MX_Lang'))) {
         $LANG = new MX_Lang();
     }
     if (@(!is_a($CFG, 'MX_Config'))) {
         $CFG = new MX_Config();
     }
     //
 }
開發者ID:heruprambadi,項目名稱:sim_penyuratan,代碼行數:17,代碼來源:Ci.php

示例9: __construct

 public function __construct()
 {
     /* assign the application instance */
     self::$APP = CI_Controller::get_instance();
     // Removed by Deepak Patil <deepak.patil@relesol.com>, 19-NOV-2013.
     /*
     global $LANG, $CFG;
     
     // Re-assign language and config for modules.
     // Modified by Deepak Patil <deepak.patil@relesol.com>, 21-OCT-2013.
     //if ( ! is_a($LANG, 'MX_Lang')) $LANG = new MX_Lang;
     //if ( ! is_a($CFG, 'MX_Config')) $CFG = new MX_Config;
     if ( @ ! is_a($LANG, 'MX_Lang')) $LANG = new MX_Lang;
     if ( @ ! is_a($CFG, 'Core_Config')) $CFG = new Core_Config;
     //
     */
 }
開發者ID:patilstar,項目名稱:HMVC-WITH-CI,代碼行數:17,代碼來源:Ci.php

示例10: __construct

 public function __construct()
 {
     /* assign the application instance */
     self::$APP = CI_Controller::get_instance();
     global $LANG, $CFG;
     /* re-assign language and config for modules */
     if (!is_a($LANG, 'MX_Lang')) {
         $LANG = new MX_Lang();
     }
     if (!is_a($CFG, 'MX_Config')) {
         $CFG = new MX_Config();
     }
     /* assign the core loader */
     self::$APP->load = new MX_Loader();
     /* autoload module items */
     self::$APP->load->_autoloader(array());
 }
開發者ID:thomasgroch,項目名稱:quiz,代碼行數:17,代碼來源:Ci.php

示例11: __construct

 public function __construct()
 {
     /* assign the application instance */
     self::$APP = $this;
     // Removed by Ivan Tcholakov, 19-NOV-2013.
     /*
     global $LANG, $CFG;
     
     // Re-assign language and config for modules.
     // Modified by Ivan Tcholakov, 21-OCT-2013.
     //if ( ! is_a($LANG, 'MX_Lang')) $LANG = new MX_Lang;
     //if ( ! is_a($CFG, 'MX_Config')) $CFG = new MX_Config;
     if ( @ ! is_a($LANG, 'MX_Lang')) $LANG = new MX_Lang;
     if ( @ ! is_a($CFG, 'Core_Config')) $CFG = new Core_Config;
     //
     */
     parent::__construct();
 }
開發者ID:Qnatz,項目名稱:starter-public-edition-4,代碼行數:18,代碼來源:Base.php

示例12: __construct

 public function __construct()
 {
     parent::__construct();
     /* assign the application instance */
     self::$APP = CI_Base::get_instance();
     /* assign the core classes */
     $classes = CI_VERSION < 2 ? array('config' => 'Config', 'input' => 'Input', 'benchmark' => 'Benchmark', 'uri' => 'URI', 'output' => 'Output', 'lang' => 'Language', 'router' => 'Router') : is_loaded();
     foreach ($classes as $key => $class) {
         $this->{$key} = load_class($class);
     }
     /* assign the core loader */
     $this->load = load_class('Loader', 'core');
     /* autoload application items */
     $this->load->_ci_autoloader();
     /* re-assign language and config for modules */
     if (!is_a($this->lang, 'MX_Lang')) {
         $this->lang = new MX_Lang();
     }
     // if ( ! is_a($this->config, 'MX_Config')) $this->config = new MX_Config;
 }
開發者ID:unisexx,項目名稱:adf16,代碼行數:20,代碼來源:Base.php

示例13: __construct

 public function __construct()
 {
     parent::__construct();
     /* assign the application instance */
     self::$APP = CI_Base::get_instance();
     /* assign the core loader */
     $this->load = new CI_Loader();
     /* use modular config and language */
     $this->config = new MX_Config();
     $this->lang = new MX_Language();
     /* the core classes */
     $classes = array('input' => 'Input', 'benchmark' => 'Benchmark', 'uri' => 'URI', 'output' => 'Output', 'router' => 'Router');
     /* assign the core classes */
     foreach ($classes as $key => $class) {
         $this->{$key} = load_class($class);
     }
     /* autoload application items */
     $this->load->_ci_autoloader();
     /* re-assign the core loader to use modules */
     $this->load = class_exists('MX_Loader', FALSE) ? new MX_Loader() : new Loader();
 }
開發者ID:RoverWire,項目名稱:eventos-nacionales,代碼行數:21,代碼來源:Controller.php

示例14: __construct

 public function __construct()
 {
     parent::__construct();
     /* assign the application instance */
     self::$APP = CI_Base::get_instance();
     /* assign the core classes */
     $classes = is_loaded();
     foreach ($classes as $key => $class) {
         $this->{$key} = load_class($class);
     }
     /* assign the core loader */
     $this->load = load_class('Loader', 'core');
     /* re-assign language and config for modules */
     if (!is_a($this->lang, 'MX_Lang')) {
         $this->lang = new MX_Lang();
     }
     if (!is_a($this->config, 'MX_Config')) {
         $this->config = new MX_Config();
     }
     /* autoload application items */
     $this->load->_ci_autoloader();
 }
開發者ID:hqye,項目名稱:stblog,代碼行數:22,代碼來源:Base.php

示例15: __construct

 public function __construct()
 {
     /* assign the application instance */
     self::$APP = CI_Controller::ci_get_instance();
 }
開發者ID:RCMmedia,項目名稱:rubicon,代碼行數:5,代碼來源:Ci.php


注:本文中的CI::APP方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。