質問するログイン新規登録

回答編集履歴

1

書式の改善

2017/01/08 11:10

投稿

aokiken
aokiken

スコア38

answer CHANGED
@@ -1,14 +1,14 @@
1
1
  こんな感じでどうでしょう。
2
2
  ```php
3
3
  Router::scope('/', function (RouteBuilder $routes) {
4
- $routes->connect('/pages/*', ['controller' => 'Pages', 'action' => 'home']);
4
+ $routes->connect('/pages/*', ['controller' => 'Pages', 'action' => 'display']);
5
5
 
6
6
  $routes->redirect(
7
7
  '/pages/lpo/',
8
- '/hoge',
8
+ '/hoge/',
9
9
  ['status' => 302]
10
10
  );
11
11
  }
12
12
  ```
13
13
 
14
- ref: https://book.cakephp.org/3.0/en/development/routing.html#redirect-routing
14
+ ref: [Routing](https://book.cakephp.org/3.0/en/development/routing.html#redirect-routing)