slimcontroller
slimcontroller copied to clipboard
problem with addControllerRoute
I add new controller by:
addControllerRoute('hello', 'Index:index')->via('GET')->name('name');
and i have problem with
Invalid argument supplied for foreach()
Location:lib/vendor/slim/slim/Slim/Router.php in handleError , line 147
exactly is:
protected function processGroups()
{
$pattern = "";
$middleware = array();
foreach ($this->routeGroups => NULL
what i'm doing wrong?