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! While you're at it, check out some resources Treehouse students have shared here.

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

PHP

Slim 2 route array

Hi! I am trying to get through a variable in Slim so I can use specific data depending on what is passed through.

I used the methods and steps as shown in the documentation here http://docs.slimframework.com/view/rendering/

But the question is, how do I get the array in the render file so I can use it? I am not using twig for this, so how can I get the data passed through in a variable. Thanks.