Controllers Help

Hi.
Now I am building API for my frontend. But I have a problem with too much code in one file (routes.php).
I thinking about containers. However how to include many php files to slim correctly?
Have you some examples with controllers? (In User Guide are not enough info).

[Added] To avoid creating a new theme:
Which are the best practices to work with Slim and MySQL?

Thanks!

1 Like