Fatal error: Uncaught Error: Call to a member function getName() on null in /home/cadastr4/public_html/bki-vrn-zend/module/News/src/News/Controller/IndexController.php:56 Stack trace: #0 /home/cadastr4/public_html/bki-vrn-zend/vendor/zendframework/zendframework/library/Zend/Mvc/Controller/AbstractActionController.php(83): News\Controller\IndexController->viewAction() #1 [internal function]: Zend\Mvc\Controller\AbstractActionController->onDispatch(Object(Zend\Mvc\MvcEvent)) #2 /home/cadastr4/public_html/bki-vrn-zend/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php(468): call_user_func(Array, Object(Zend\Mvc\MvcEvent)) #3 /home/cadastr4/public_html/bki-vrn-zend/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php(207): Zend\EventManager\EventManager->triggerListeners('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure)) #4 /home/cadastr4/public_html/bki-vrn-zend/vendor/zendframework/zendframework/library/Zend/Mvc/Controller/AbstractController.php(117): Zend\EventManage in /home/cadastr4/public_html/bki-vrn-zend/module/News/src/News/Controller/IndexController.php on line 56