Fatal error: Uncaught Error: Call to a member function getDistrict() on null in /var/www/module/Application/view/layout/teacher.phtml:698
Stack trace:
#0 /var/www/vendor/laminas/laminas-view/src/Renderer/PhpRenderer.php(530): include()
#1 /var/www/vendor/laminas/laminas-view/src/View.php(194): Laminas\View\Renderer\PhpRenderer->render()
#2 /var/www/vendor/laminas/laminas-mvc/src/View/Http/DefaultRenderingStrategy.php(92): Laminas\View\View->render()
#3 /var/www/vendor/laminas/laminas-eventmanager/src/EventManager.php(319): Laminas\Mvc\View\Http\DefaultRenderingStrategy->render()
#4 /var/www/vendor/laminas/laminas-eventmanager/src/EventManager.php(169): Laminas\EventManager\EventManager->triggerListeners()
#5 /var/www/vendor/laminas/laminas-mvc/src/View/Http/DefaultRenderingStrategy.php(110): Laminas\EventManager\EventManager->triggerEvent()
#6 /var/www/vendor/laminas/laminas-eventmanager/src/EventManager.php(319): Laminas\Mvc\View\Http\DefaultRenderingStrategy->render()
#7 /var/www/vendor/laminas/laminas-eventmanager/src/EventManager.php(169): Laminas\EventManager\EventManager->triggerListeners()
#8 /var/www/vendor/laminas/laminas-mvc/src/Application.php(354): Laminas\EventManager\EventManager->triggerEvent()
#9 /var/www/vendor/laminas/laminas-mvc/src/Application.php(335): Laminas\Mvc\Application->completeRequest()
#10 /var/www/html/index.php(48): Laminas\Mvc\Application->run()
#11 {main}
thrown in /var/www/module/Application/view/layout/teacher.phtml on line 698