Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non existing controller action errror message on normal & scaffolded controller #6061

Closed
ravage84 opened this issue Mar 12, 2015 · 1 comment
Assignees
Milestone

Comments

@ravage84
Copy link
Member

CakePHP 2.6.2
Calling a non existing controller action
http://localhost/cakephp_app/ports/foo

On a scaffolded controller produces a different errror message than on a non-scaffolded one.
With scaffolding Ports instead of PortsController.

class PortsController extends AppController {
    /**
     * Scaffold
     *
     * @var mixed
     */
    public $scaffold;
}

Missing Method in Ports
Error: The action foo is not defined in controller Ports
Error: Create Ports::foo() in file: app\Controller\Ports.php.

<?php
class Ports extends AppController {
    public function foo() {
    }
}
class PortsController extends AppController {
}

Missing Method in PortsController
Error: The action foo is not defined in controller PortsController
Error: Create PortsController::foo() in file: app\Controller\PortsController.php.

<?php
class PortsController extends AppController {
    public function foo() {
    }
}

I presume this could be intended though.
It's just a bit surprising...

@markstory markstory added this to the 2.6.3 milestone Mar 13, 2015
@markstory markstory self-assigned this Mar 13, 2015
@markstory
Copy link
Member

I can get this fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants