cakephp change default action for controller (i.e. from “index”) -


i have controllers want default table , not index, present better in different format index pages use. how can change this?

got it. others:

the file /app/config/routes.php contains routing configuration, , default action can changed there

router::connect(    '/pages',    array('controller' => 'pages', 'action' => 'display') ); 

Comments

Popular posts from this blog

c++11 - Intel compiler and "cannot have an in-class initializer" when using constexpr -

rest - Spring boot: Request method 'PUT' not supported -

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -