/Config/routes.phpを編集すればOKです。
もちろん事前に対応するページを作成しておかなくてはいけません。
まずはbakeコマンドでサンプルページを作成しておけばスムーズに開発できるでしょう。
1 2 3 4 5 6 7 | /** * Here, we are connecting '/' (base path) to controller called 'Pages', * its action called 'display', and we pass a param to select the view file * to use (in this case, /app/View/Pages/home.ctp)... */ //Router::connect('/', array('controller' => 'pages', 'action' => 'display', 'home')); Router::connect( '/' , array ( 'controller' => 'users' , 'action' => 'index' )); |