public function controller($viewName, array $config = array())
{
try {
return parent::controller($viewName, $config);
} catch (ControllerNotFound $e) {
}
$controllerClass = $this->container->getNamespacePrefix('inverse') . 'Controller\\' . ucfirst($viewName);
try {
return $this->createController($controllerClass, $config);
} catch (ControllerNotFound $e) {
}
$controllerClass = $this->container->getNamespacePrefix('inverse') . 'Controller\\' . ucfirst($this->container->inflector->singularize($viewName));
return $this->createController($controllerClass, $config);
}