| Views: 194
I've created a new Silex
controller, all the setup for it seemed fine, but for some reason it wasn't working. Every time I accessed a route for that controller, I got an error stating that the $request
argument wasn't provided, like so...
Here's a more detailed exception stack trace...
After some debugging it turned out that I was missing the following line from my controller class:
It was as simple as that!
Have comments or feedback on what I wrote? Please share them below! Found this useful? Consider sending me a small tip
Other posts you may like...