Page Controller Pattern vs Front Controller

Asked

Viewed 222 times

3

What is Page Controller? What is Front Controller? From what I read, page controller means a controller that is embedded in the html/jsf page facelet.

However in the Front Controller the controller and the view are separate. (I know how the Laravel MVC works, if they could give an example with Laravel, possibly it would better understand the patterns)

I read Martin Fowler’s definition, however how the abstraction level and very large I have enough difficulty in perceiving...

1 answer

1


MVC is a general pattern. The idea is to separate three aspects (Modelo, Visão e Controle) from one application to another. Now, this idea can be realized in different ways according to the details of a situation / application. One way is to have many controllers, each responding to an action or set of actions. Another way is to have a main controller who receives all the actions and then dispatches them to different controladores, this is called Front Controller. Thus, the standard Front Controller is an MVC standard . For example, the Spring Framework, laravel uses the pattern of Front Controller to accomplish the MVC.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.