getClassPath('lists/'.$className.'.php'); if (file_exists($classPath)) { $list = $adminClassLocator->createClass($classPath, $className); $list->run(); } else { throw new Exception('Neexistující list '.$type); }