Using the Model,Controller and Routes


#1

Hi…Guys,

I using the Slim framework3 but i unable to use model,controller and routes. please suggest me the right way for with them .


#2

Have you read the Slim Documentation? The question is pretty generic, is there anything specific you are having issues with?


#3

Hi!

Slim is a microframework and not a full-fledged MVC framework like Laravel, CakePHP or Symfony.

Typically, a microframework facilitates receiving an HTTP request, routing the HTTP request to the appropriate controller, dispatching the controller, and returning an HTTP response. Microframeworks are often specifically designed for building the APIs for another service or application. But of course you can also create really complex web applications with Slim.

Here a some example projects for Slim 3: