Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: backend in MVC pattern ??
05-16-2008, 11:40 AM #1
- Join Date
- Dec 2005
- Thanked 0 Times in 0 Posts
backend in MVC pattern ??
I had some queries related to MVC pattern.
I used to perform the uri action as:
http://mysite.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
Please jott down your valueable views/suggestions.
Thanks in advance for the help.
05-16-2008, 04:38 PM #2
- Join Date
- Jan 2007
- Thanked 58 Times in 54 Posts
I'm only slightly familiar with CakePHP, I find it to be a bit too big/feature-laden for my taste. But it does implement some good techniques.
I use a similar setup to implement the MVC pattern, and I find that it applies to almost any site. So in my opinion you are best off using the same pattern for your backend development.
True, the pretty URL is not as important and it does involve more work. But your code also ends up cleaner and stable.
Whether you want to combine then in the same folder hierarchy? I don't know. I prefer not to. Because either clutters up the other. I prefer them separated. I think it is all up to you. I can see some security concerns of mixing front end with back end, but security through obscurity is no security at all.