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
Post a Comment