- $this->setClassName(sprintf("Web%sController",
- $this->convertToClassName($controllerName)
- ));
- } elseif ($this->getConfigInstance()->readConfig('page_with_news') == $this->getApplicationInstance()->getRequestInstance()->getRequestElement('page')) {
- // Yes, display news in home then set default controller with news
- $this->setClassName('WebDefaultNewsController');
+ $className = 'Web' . $this->convertToClassName($controllerName) . 'Controller';
+
+ // ... and set it
+ $this->setClassName($className);