__construct() public method

Sets the $config data from the primary config.php file as a class variable.
public __construct ( ) : void
return void
コード例 #1
0
 /**
  * Constructor
  *
  * @access  public
  * @return  void
  */
 function __construct()
 {
     parent::__construct();
     $this->config_path = APPPATH . 'config/config' . EXT;
     $this->database_path = APPPATH . 'config/database' . EXT;
     $this->autoload_path = APPPATH . 'config/autoload' . EXT;
 }
コード例 #2
0
ファイル: EE_Config.php プロジェクト: rmdort/adiee
 /**
  * Constructor
  *
  */
 public function __construct()
 {
     parent::__construct();
     // Change this path before release.
     $this->config_path = APPPATH . 'config/config' . EXT;
     $this->database_path = APPPATH . 'config/database' . EXT;
     $this->_initialize();
 }
コード例 #3
0
ファイル: MY_Config.php プロジェクト: Intelnetgs/white
 /**
  * Constructor
  *
  * @access	public
  * @return	void
  */
 function __construct()
 {
     parent::__construct();
     $define_path = "";
     if (defined('ENVIRONMENT')) {
         switch (ENVIRONMENT) {
             case 'development':
                 $this->define_path = APPPATH . 'config/development/database' . EXT;
                 break;
             case 'testing':
             case 'production':
                 $this->define_path = APPPATH . 'config/production/database' . EXT;
                 break;
             default:
                 exit('The application environment is not set correctly.');
         }
     }
     $this->config_path = APPPATH . 'config/config' . EXT;
     $this->database_path = $this->define_path;
     $this->autoload_path = APPPATH . 'config/autoload' . EXT;
     $tem_index = getcwd();
     $this->index_path = $tem_index . "/index.php";
 }
コード例 #4
0
ファイル: MY_Config.php プロジェクト: nuhash/OCMS
 function __construct()
 {
     parent::__construct();
 }
コード例 #5
0
ファイル: MY_Config.php プロジェクト: rip-projects/ark-php
 function __construct()
 {
     parent::__construct();
     $this->_config_paths = array(APPPATH, ARCHPATH);
 }
コード例 #6
0
ファイル: Plain_Config.php プロジェクト: iweave/unmark
 public function __construct()
 {
     parent::__construct();
     log_message('debug', 'Plain_Config Class Initialized');
 }
コード例 #7
0
ファイル: config_data.php プロジェクト: BersnardC/DROPINN
 function Config_data()
 {
     parent::__construct();
     $CI =& get_instance();
     define("THEME_FOLDER", "templates/blue");
 }
コード例 #8
0
ファイル: TOC_Config.php プロジェクト: colonia/tomatocart-v2
 /**
  * Constructor
  *
  * Override the CI_Config constructor and add local path to config paths
  */
 public function __construct()
 {
     parent::__construct();
     $this->_config_paths = array(LOCALAPPPATH, APPPATH);
     log_message('debug', 'CI_Config Class Initialized');
 }
コード例 #9
0
ファイル: EB_Config.php プロジェクト: cybercog/exambuff
 /**
  * Constructor
  *
  */
 public function __construct()
 {
     parent::__construct();
     //2008-04-21 KUNIHARU Tsujioka
     $this->_is_ssl();
 }
コード例 #10
0
ファイル: MY_Config.php プロジェクト: ponchov/quizzworld
 function __construct()
 {
     parent::__construct();
     global $URI;
 }