public function setPath($path)
    {
        // clear out the prior search dirs
        $this->configList[self::TPL_PATH_LIST] = [];
        // always add the fallback directories as last resort
        $this->addPath('.');
        // actually add the user-specified directory
        $this->addPath($path);
    }
public function setPath($path)
    {
        // clear out the prior search dirs
        $this->configList[self::TPL_PATH_LIST] = [];
        // always add the fallback directories as last resort
        $this->addPath('.');
        // actually add the user-specified directory
        $this->addPath($path);
    }
public function setPath ( $ path ) { // clear out the prior search dirs $ this -> configList [ self :: TPL_PATH_LIST ] = [ ] ; // always add the fallback directories as last resort $ this -> addPath ( '.' ) ; // actually add the user-specified directory $ this -> addPath ( $ path ) ; }
Sets an entire array of possible search paths for templates

@param string|array $path
Sets an entire array of possible search paths for templates