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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T00:44:22+00:00 2026-06-04T00:44:22+00:00

I have a cakephp application made by previous employees, its structure is defined as

  • 0

I have a cakephp application made by previous employees,
its structure is defined as what can be seen from the following image
I am now stuck at how to figure out what I should do in my current situation in which I am asked to add in another controller, model and view accordingly.
In the views folder there are folders to store different views that match particular controllers and models. I also created one folder and named it as new_foo.

Now you see the app_controller.php ? the file that contains all information available to initialize the menus (navigation bar) that are to call any controllers.

The menu is defined as an array, e.g

menu=array(
    array(
        'label' => __("Menu Item", true),
        'controller' => 'MenuController',
        'action' => 'MenuAction'
                        ),
    array(
        'label' => __("Another item", true),
        'controller' => 'AnotherMenusController',
        'action' => 'AnotherAction'
        ));

I also defined one such an element then created myself a new controller class such as

AnotherMenusController.php // please note the plural

class  AnotherMenusController extends AppController
{
    $this->loadModel('AnotherMenu'); // Please note the plural
    function AnotherAction()
    {
        $this->AnotherMenu->modelFunc();    
    }
}

And i also created a model class similar to this

class AnotherMenu extends AppModel
{
    function modelFunc()
    {
        print_r("Oh that is it ?");
    }   
}

However, when I try to run the application in my localhost, I always am reported with an error as

Not Found Error: The requested address ‘/anothermenus/anotheraction’
was not found on this server.

although i could already create a link in the menu item, oh well that seems irrelevant. I am desperate wishing if only there might be someone being able to shed a light on this for me to feel a little better. I am thankful for any help you offered.

Again thank you so much for your concern.

the image is in the following link

https://i.stack.imgur.com/XjQok.jpg

My current problem is that the server doesn’t recognize my controller function, what should I change now ?

I should have missed registering something for it to work out for me in this particular issue.

  • 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-04T00:44:28+00:00Added an answer on June 4, 2026 at 12:44 am

    My first guess would be that your problem is that your local webserver is not respecting the .htaccess. The route the menu is redirecting you to is ‘/anothermenus/anotheraction’ but the webserver reports that such path doesn’t exist. It is possible that the app is configured for production use and your local webserver isn’t configured exactly the same.

    Check what happens with other menus and if the paths they link to are similar to the one of the menu you added or not. I would also verify CakePHP’s and the webserver’s logs to verify which one is returning the error. If it is the webserver the webserver’s config (or .htaccess files) are to be reviewed. If it is CakePHP’s, then you need to keep looking at your code (and disregard this answer)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have made a full application in JQM using cakePHP as the server side
I have a cakePhp application built, and now I'm creating a simple blog based
I have two issues with my CakePHP application (its my first one in CakePHP).
I have huge troubles running my cakephp application now. after upgrading vom lenny to
I have a cakePHP application that is pulling data from two different databases, which
I have two contact forms in my CakePHP application -- one with its own
I have been busy integrating Wordpress to one of a CakePHP application.Last Monday I
I am using JQuery and cakephp for my application. I have created a select
I have the CakePHP stack in /var/www/site from one view under controller A I
I have a cakephp installation in the root of my domain. Now it turns

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.