Voodoo\Core\Env::setConfigPath PHP Method

setConfigPath() public static method

By default the config is under /App/_conf, But you can have multiple environment like production, dev So it would be placed under /App/_conf/production, /App/_conf/dev etc $dirname is the subdirectory name, ie: production
public static setConfigPath ( string $dirName )
$dirName string
    public static function setConfigPath($dirName)
    {
        self::$paths["Config"] = self::$paths["BaseConfig"] . ($dirName ? "/{$dirName}" : "");
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * Config is restricted directory that contains the app config
  * By default it reside in the App/Conf
  * @param type $path
  * @return \Voodoo\Core\Application
  */
 public function setConfigPath($path)
 {
     Env::setConfigPath($path);
     return $this;
 }
All Usage Examples Of Voodoo\Core\Env::setConfigPath