diff --git a/src/lib/Controller_240323/ControllerBase.php b/src/lib/Controller_240323/ControllerBase.php index 5bd78c13..dae6f46b 100644 --- a/src/lib/Controller_240323/ControllerBase.php +++ b/src/lib/Controller_240323/ControllerBase.php @@ -31,16 +31,16 @@ public function dispatch( $request ) if( ! count($identifier) ) // ins of methods like index() as done in laravel { - $this->render(); + return $this->render(); } elseif( count($identifier) == 1 && method_exists($this, $identifier[1])) { $method = $identifier[1]; - $this->$method(); + return $this->$method(); } elseif( count($identifier) > 1 ) { - $this->subViewControllers[$identifier]->dispatch( $request ); + return $this->subViewControllers[$identifier]->dispatch( $request ); } else {