A
A
Anton Medvedev2012-01-08 16:51:32
Microcontrollers
Anton Medvedev, 2012-01-08 16:51:32

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

5 answer(s)
A
Anton, 2012-01-08
@sHinE

What do you want from a controller? There is such a router - github.com/chriso/klein.php , won't it work?

A
alesto, 2012-01-08
@alesto

It looks like you need something like this microframework. As the author from MVC writes, there is only C here :)
silex.sensiolabs.org/

V
Vladimir Chernyshev, 2012-01-08
@VolCh

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.

D
Disturbed, 2012-01-08
@Disturbed

I would like to note that Model != ORM.

L
Lostboy, 2012-01-08
@Lostboy

Indeed, you can refer to the symfony 2 components
fabien.potencier.org/article/49/what-is-symfony2 - an overview of the features
You are most likely interested in the HttpFoundation component

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question