Hi. Here are some examples for using controllers except one on the site? And how to include many php files to slim correctly (10 controllers in different php files)?
And may you recommend some Database ORM for slim. Some easy to use with examples.
Thanks!!!
Example application: https://github.com/akrabat/slim-bookshelf
Correct way to include class files is using an autoloader, composer for example (also used in the bookshelf above).
Which ORM is entirely up to you. None works better of worse with Slim.
Heared some good things about eloquent and spot2, but I never use an ORM.
1 Like
Cool!
I never use they too. However I have toooo much sql code. And many validations. I need they only for sending by json and have only backend for AngularJS.
What about ORM? You recommend Eloquent? Or nothing just SQL