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

File structure change from when video was first uploaded?

It seems that Slim (or Composer, not sure which) has switched up their directory structures.

After running the composer create-project slim/slim-skeleton php_rest_api command, my src directory has Application, Domain, and Infrastructure folders, with the Application folder filled with Actions, Handlers, Middleware, ResponseEmitter, Settings, Domain, and Infrastructure folders-- rather than the simple few files Alena has in her src directory.

I'm going to try to continue to follow the course, but just noting that this seems to be outdated at this point.

EDIT: Noting here that if you're using the latest version of Composer/Slim (as of April 2021), it looks like the files that Alena works with to set up the project are now under ./app.