public static function getControllerName($string = null) { $string = $string ?: get_called_class(); return ucfirst(Inflector::pluralize($string) . 'Controller'); }