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 8555961
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T15:14:42+00:00 2026-06-11T15:14:42+00:00

I have installed CakePHP on windows over II7 and i am having problems with

  • 0

I have installed CakePHP on windows over II7 and i am having problems with the routes.
I have created a Model, a Controller and a View for Users.

When i try to access the index view, i do it like this without any problem:

http://myhost/cakephp/users/

But, when I try to add a new user, the view doesn’t load properly:

http://myhost/cakephp/users/add/

It shows this error:

Error: AddController could not be found.
Error: Create the class AddController below in file: app\Controller\AddController.php

In order to make it work, i have to do this in app/Config/routes.php:

Router::connect('/users/add', array('controller' => 'users', 'action' => 'add'));

But that wouldn’t be necessary if it worked well.
Neither the delete or view views load.

What’s going on? How can i detect the problem?
Thanks.

EDIT

Content of routes.php:

Router::connect('/', array(
    'controller' => 'pages', 'action' => 'display', 'home'
));
Router::connect('/pages/*', array(
    'controller' => 'pages', 'action' => 'display'
));
CakePlugin::routes();
require CAKE . 'Config' . DS . 'routes.php';
  • 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-11T15:14:43+00:00Added an answer on June 11, 2026 at 3:14 pm

    Ok, it seems i have solved it. It was all because of adding a routing prefix using cake bake console… I had to comment this line at core.php

     Configure::write('Routing.prefixes', array('users'));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have just successfully installed CakePHP and I see that I can edit the
I have installed msysGit 1.7.10 on my Windows 7 machine. What I need to
I have installed CakePHP 2.0 framwork using steps below: 1. Start the terminal 2.
I have installed C++SDK that have Qt but when I try compiling a code
I'm new to cakephp and I'm having some problems with setting up a local
I have installed CakePHP in my test server and it is working fine. When
I am using Cakephp 1.3.6 and I have installed gigya plugin as per instructions.
I have a site (built on LAMP (cakephp) and has ssl certificate installed) which
I am trying to make CakePHP work over windows with IIS7 and i can
OSX machine running MAMP. CakePHP 2.2.1 installed and configured properly (meaning that I have

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.