private function getTitleFromPath($path) { $parts = explode('/', rtrim($path, '/')); return end($parts); }