slimcontroller icon indicating copy to clipboard operation
slimcontroller copied to clipboard

problem with addControllerRoute

Open pioter opened this issue 10 years ago • 0 comments

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?

pioter avatar Sep 03 '14 11:09 pioter