public static function getClassName($controller, $module = null) { $ns = App::getControllerNameSpace(); if ($module) { $ns .= '\\' . implode('\\', array_map('Tale\\Util\\StringUtil::camelize', explode('.', $module))); } return "{$ns}\\" . StringUtil::camelize($controller) . 'Controller'; }