public function load($setting, $pathProject)
    {
        $pathFull = "{$pathProject}config/".$this->getEnv()."/{$setting}.php";
        if (!is_readable($pathFull)) {
            return false;
        }
        $data = (include $pathFull);
        return is_array($data) ? $data : false;
    }
public function load($setting, $pathProject)
    {
        $pathFull = "{$pathProject}config/".$this->getEnv()."/{$setting}.php";
        if (!is_readable($pathFull)) {
            return false;
        }
        $data = (include $pathFull);
        return is_array($data) ? $data : false;
    }
public function load ( $ setting , $ pathProject ) { $ pathFull = "{$pathProject}config/" . $ this -> getEnv ( ) . "/{$setting}.php" ; if ( ! is_readable ( $ pathFull ) ) { return false ; } $ data = ( include $ pathFull ) ; return is_array ( $ data ) ? $ data : false ; }
Load configuration data from a file.

@param string $setting Name of setting to load.
@param string $pathProject Directory where the file is located.
File name must be <$setting>.php
@return mixed
Load configuration data from a file .