Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix middleware call #2

Merged
merged 1 commit into from Mar 22, 2016
Merged

Fix middleware call #2

merged 1 commit into from Mar 22, 2016

Conversation

FelipeUmpierre
Copy link
Contributor

I was having trouble to use middleware

$router->post("/register/save", "Controller\RegisterController@save", "Middleware\RegisterMiddleware@validate");

I was getting this errors:

Notice: Trying to get property of non-object ... Router.php on line 221
Warning: call_user_func_array() expects parameter 1 to be a valid callback, no array or string given ... Router.php on line 221

So I use the example 1 from php.net

I am using PHP version: 5.5.12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants