/** * Add a directory to be checked for the existance of templates. * Paths are checked in the reverse order of their being added so * that the most specific paths are checked first. * @param string $path */ public static function addPath($path) { if (!self::$paths instanceof PathFinder) { // To-do: Cache Paths self::$paths = new PathFinder(); } self::$paths->addPath($path); }