Answer the question
In order to leave comments, you need to log in
PHP library for Controller?
Hello! I asked myself this question: Are there separate libraries that implement the Controller from MVC outside the framework? For example, there is a separate Model and View: Doctrine & Twig. And the controller?
Answer the question
In order to leave comments, you need to log in
What do you want from a controller? There is such a router - github.com/chriso/klein.php , won't it work?
It looks like you need something like this microframework. As the author from MVC writes, there is only C here :)
silex.sensiolabs.org/
For the most part (modular) frameworks are written to implement the functions of controllers, view and model communication. The word "library" is not entirely appropriate here. The library is called from its code, and the controller is its code first of all. You can write code in some users.php to get a list of users from Doctrine and render it in Twig and it will be a typical controller, but when you come to the concept of a front controller and routing to comply with DRY at least, you will get a typical bicycle framework.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question