diff --git a/src/FuzeWorks/Router.php b/src/FuzeWorks/Router.php index cc32824..fab4604 100644 --- a/src/FuzeWorks/Router.php +++ b/src/FuzeWorks/Router.php @@ -371,7 +371,11 @@ class Router // Reset vars $this->view = $event->view; - $this->controller = $event->controller; + if ($this->controller !== $event->controller) + { + $this->controller = $event->controller; + $this->view->setController($this->controller); + } } catch (EventException $e) { throw new RouterException("Could not load view. routerCallViewEvent threw exception: '".$e->getMessage()."'"); }