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 ?
– Elton Almeida
you created the
actions(methods) in the controllerPagesController?– Skywalker
you must create the method
testein the controller defined on the route.– Skywalker