From ca0032dc08d701e5f05559b86f79fb24b3108b6a Mon Sep 17 00:00:00 2001 From: Walter A Jablonowski <31986246+walter-a-jablonowski@users.noreply.github.com> Date: Sun, 24 Mar 2024 19:50:12 +0100 Subject: [PATCH] Minor fix --- src/lib/Controller_240323/ControllerBase.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 {