__construct() public method

Sets the $config data from the primary config.php file as a class variable.
public __construct ( ) : void
return void
Ejemplo n.º 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;
 }
Ejemplo n.º 2
0
 /**
  * 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();
 }
Ejemplo n.º 3
0
 /**
  * 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";
 }
Ejemplo n.º 4
0
 function __construct()
 {
     parent::__construct();
 }
Ejemplo n.º 5
0
 function __construct()
 {
     parent::__construct();
     $this->_config_paths = array(APPPATH, ARCHPATH);
 }
Ejemplo n.º 6
0
 public function __construct()
 {
     parent::__construct();
     log_message('debug', 'Plain_Config Class Initialized');
 }
Ejemplo n.º 7
0
 function Config_data()
 {
     parent::__construct();
     $CI =& get_instance();
     define("THEME_FOLDER", "templates/blue");
 }
Ejemplo n.º 8
0
 /**
  * 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');
 }
Ejemplo n.º 9
0
 /**
  * Constructor
  *
  */
 public function __construct()
 {
     parent::__construct();
     //2008-04-21 KUNIHARU Tsujioka
     $this->_is_ssl();
 }
Ejemplo n.º 10
0
 function __construct()
 {
     parent::__construct();
     global $URI;
 }