Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

front controller , Page controller?

what is the difference between front controller and page controller? which is the best?

like image 374
software Avatar asked Feb 25 '11 13:02

software


2 Answers

See this for front-controller pattern and this for page controller pattern. And you can get a better idea of how front-controller is implemented in ASP.NET MVC and it's advantages over page controller from here

These are not two complementary patterns but they both have different implementations. ASP.NET MVC uses front controller pattern where as ASP.NET Web forms are implemented based on the page controller pattern.

like image 145
Illuminati Avatar answered Sep 28 '22 00:09

Illuminati


I think it's that a front controller architecture has a single entry point for all requests whereas a Page Controller architecture has separate entry points for each request. ASP.NET MVC uses the Front Controller architecture. FubuMVC is a .NET front controller architecture. StackOverflow isn't really the right forum to address which is better.

Here's an over of FubuMVC's front controller pattern.

like image 31
Ryan Avatar answered Sep 28 '22 01:09

Ryan