public function view($viewName, $viewType = 'html', array $config = array())
{
try {
return parent::view($viewName, $viewType, $config);
} catch (ViewNotFound $e) {
}
$viewClass = $this->container->getNamespacePrefix('inverse') . 'View\\' . ucfirst($viewName) . '\\' . ucfirst($viewType);
try {
return $this->createView($viewClass, $config);
} catch (ViewNotFound $e) {
$viewClass = $this->container->getNamespacePrefix('inverse') . 'View\\' . ucfirst($this->container->inflector->singularize($viewName)) . '\\' . ucfirst($viewType);
return $this->createView($viewClass, $config);
}
}