/** * @param string | array $path */ static function setViewsPath($path) { self::$viewsPath = array(); foreach ((array) $path as $dir) { self::$viewsPath[] = rtrim($dir, '/') . '/'; } }