Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Dec 2005
    Posts
    217
    Thanks
    1
    Thanked 0 Times in 0 Posts

    backend in MVC pattern ??

    Hello forums!!
    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
    4> else
    Please jott down your valueable views/suggestions.
    Thanks in advance for the help.

  • #2
    Senior Coder
    Join Date
    Jan 2007
    Posts
    1,648
    Thanks
    1
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •