public function addLocation($path)
    {
        $retval = false;

        if (!($retval = array_search($path, $this->model_location_array, $path))) {
            if (($retval = is_dir($path))) {
                $this->model_location_array[] = $path;
            }
        }

        return $retval;
    }
public function addLocation($path)
    {
        $retval = false;

        if (!($retval = array_search($path, $this->model_location_array, $path))) {
            if (($retval = is_dir($path))) {
                $this->model_location_array[] = $path;
            }
        }

        return $retval;
    }
public function addLocation ( $ path ) { $ retval = false ; if ( ! ( $ retval = array_search ( $ path , $ this -> model_location_array , $ path ) ) ) { if ( ( $ retval = is_dir ( $ path ) ) ) { $ this -> model_location_array [ ] = $ path ; } } return $ retval ; }
Adds a new location path for model templates. Precedence order is the order in which additions are made.
@param string $path Folder path to be added.
@return bool Returns true if the folder exists or false if not.
Adds a new location path for model templates . Precedence order is the order in which additions are made .