Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
walter-a-jablonowski committed Mar 24, 2024
1 parent a049034 commit ca0032d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/Controller_240323/ControllerBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit ca0032d

Please sign in to comment.