Cakephp Router Failure

Asked

Viewed 52 times

0

I’m updating a website that was made on Cake Php and I have a problem with Route.
In app\config\routes.ctp are the rules below and this works:

Router::connect( 
    '/curia/anuario', 
    array( 'controller' => 'pages', 'action' => 'anuario' ) 
); 

This below does not work:

Router::connect( 
    '/curia/teste', 
    array( 'controller' => 'pages', 'action' => 'teste' ) 
);

Others do not work
The files are in app\views\pages
Inside of pages I have anuario.ctp and I have teste.ctp
teste.ctp does not work, error 404.
Is there any other place where it should be configured?

  • How’s your Pagescontroller file ?

  • 1

    you created the actions(methods) in the controller PagesController?

  • 1

    you must create the method teste in the controller defined on the route.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.