Forum Moderators: coopster

Message Too Old, No Replies

backend in MVC pattern ?

         

PHPycho

9:40 am on May 16, 2008 (gmt 0)

10+ Year Member



Hello forums!
I had some queries related to MVC pattern.
I used to perform the uri action as:
http://example.com/controller/method/params by default, I have used router tweaking for other than default routing.
I would like to hear your views about backend development in MVC pattern.
I had found in cakePHP, action_admin pattern in the same controller file(for both frontend and backend) .
and i dont know what goes in the rest framework.

I would like to know which method is more suitable and flexible for backend development
1> using same controller file for both backend and frontend apps
2> using different mvc folders for backend
3> using different controller for backend and frontend but with same model part
4> else
Please jott down your valueable views/suggestions.
Thanks in advance for the help.

[edited by: dreamcatcher at 10:35 am (utc) on May 16, 2008]
[edit reason] use example.com. Thanks. [/edit]

coopster

4:22 pm on May 20, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



I think you are going to find this different for any given installation, PHPycho. What I'm saying is there may not be a once and for all set up that fits my needs versus your needs. I'm not familiar with cakePHP as I do not use it. For those apps where I have implemented MVC I have rolled my own framework and for those methods that are the same for frontend and backend, I use the same controller.

I have used router tweaking for other than default routing.

You lost me here ... ?