Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8411141
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T00:21:58+00:00 2026-06-10T00:21:58+00:00

I have build an e-commerce website with CakePHP Framework. Now, i need to implement

  • 0

I have build an e-commerce website with CakePHP Framework.

Now, i need to implement administration log-in, and orders/users management…

The big question is: Should i create a new App (a new CakePHP app folder), or use the existing one?

Using the same folder, would make me spend less time copying models, but, would considerably decrease ‘security’, because i would need to create methods for admin, and user…

Using separately framework, with almost the same models, would help me with the views… i would use another page template, and the log-in system would be different from the normal website.

So, what is the “best” solution for this case?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T00:22:00+00:00Added an answer on June 10, 2026 at 12:22 am

    Build the admin in the same app. It doesn’t decrease security. You can easily control which controller methods are accessible by admin users with Prefix Routing. You can also change the view layout based on the route prefix. If you need something more fine-grained, Cake supports Access Control Lists for complex permissions systems.

    In the end, your app will be much more maintainable if you are using a single set of models and controllers.

    Here’s a little code snippet I use in app_controller.php. This is from an app built in CakePHP 1.2, so it may need to be updated slightly for newer versions. This assumes that any registered user has access to the admin URLs, but that could easily be changed:

    function beforeFilter(){
        if (isset($this->params['prefix']) && $this->params['prefix'] == 'admin') {
            if (!$this->Session->check('User')) {
                // save the url in the session so that you can redirect there after login
                $this->Session->write('lastPageVisited', $this->params['url']['url']);
                $this->redirect('/users/login/');
                exit();
            }
            // set the admin layout
            $this->layout = 'admin';
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have build a website in Django . I need to use the web
I have to build an e commerce website that aims to target very heavy
I have build my very first application to Android and I want now to
I have build a simple website with ASP.NET C#. It runs normally after I
We have build several web service based on .net. Now we want to create
For while now I have been using ezpublish as a framework, and CMS when
I'm working at some e-commerce website where I have a bunch of filters for
I have an e-commerce website that is already up and running for some time.
I have a requirement to build branded e-commerce sites that have their own urls
We have a client using Volusion as a storefront/e-commerce solution. We need to export

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.