akrabat / slim3-skeleton

Simple Slim Framework 3 skeleton with Twig & Monolog
BSD 3-Clause "New" or "Revised" License
345 stars 99 forks source link

Question regarding Actions #6

Closed ghost closed 9 years ago

ghost commented 9 years ago

This is my first time using Slim and have a question. In looking at your config, would you suggest putting the Actions within another directory for example

or do you have a different suggestion.

Here is how I currently have my project structure

I find this structure will keep my actions contained and small. AllActions is the final class which extends the baseclass. I use traits for CRUD and use them in the Class.

akrabat commented 9 years ago

The nice thing about Slim is that it doesn't enforce any particular structure. I like to split out my actions into subfolders for larger apps, for but smaller ones I don't bother.