Welcome Guest, Not a member yet? Register   Sign In
Redirect all URL requests to only one controller
#11

[eluser]gRoberts[/eluser]
Ok, you are getting confused.

"The Research of PHP Development Framework Based on MVC Pattern" is telling you how to write an MVC framework, but you are using CodeIgniter to do this, even though it is already an MVC framework.

Codeigniter handles all of this for you. Best read the manual Wink http://www.ellislab.com/codeigniter/user-guide
#12

[eluser]pedsa[/eluser]
[quote author="gRoberts" date="1338375540"]Ok, you are getting confused.

"The Research of PHP Development Framework Based on MVC Pattern" is telling you how to write an MVC framework, but you are using CodeIgniter to do this, even though it is already an MVC framework.

Codeigniter handles all of this for you. Best read the manual Wink http://www.ellislab.com/codeigniter/user-guide[/quote]

Yes I know, sorry if I didn't give a clearly explanation of the idea (my English is not very good..) I refer this paper to provide a better explanation of the concept: A Front Controller which will get all user requests and leave the rest of the control with the programmer. This approach will allow to translate all the URL request without having a specific controller for each URI 1st segment (the DB will do the work for us in the page content feature or we can add an exception list that will redirect to one particular controller) and increase the extensibility of the Framework (for instance, implement later the HMVC).

PS: The CodeIgniter manual it is very good! Wink




Theme © iAndrew 2016 - Forum software by © MyBB