Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.Start your free trial
AJAYA RAI1,485 Points
'$container' var is undefined
Hello, it seems that for me, '$container' (video time 3:01) is an undefined variable, even though I have followed the instructions properly (e.g. defined the $container var in the dependencies.php).
video link: https://teamtreehouse.com/library/middleware-2
Any help would be appreciated.
Alena Holligan Registering the middleware in middleware.php leads to a notice saying the
$container variable is undefined. Can you please shed some light on this and help us figure it out? The version of Slim in this video is slightly different from the most recent release. :)
Having the same problem.