What is the role of the Router Object in MVC based frameworks
Posted
by Saif Bechan
on Stack Overflow
See other posts from Stack Overflow
or by Saif Bechan
Published on 2010-05-19T23:15:50Z
Indexed on
2010/05/19
23:20 UTC
Read the original article
Hit count: 206
In most MVC based framework I see a router object. If I look at it splits up the uri and decides what controller should be used, and which action should be fired.
Even though this makes a lot of sense, I can not give this a place in the MVC patern. Is splitting up the uri not the job of the controller. And then the controller should just decide which class and function to run.
© Stack Overflow or respective owner