public static function setRootPath($path) { $last_char = substr($path, -1); if (!in_array($last_char, array('\\', '/'))) { $path .= DIRECTORY_SEPARATOR; } Clover::$root_path = $path; }