回答編集履歴

1

書式の改善

2017/01/08 11:10

投稿

aokiken
aokiken

スコア38

test CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  Router::scope('/', function (RouteBuilder $routes) {
6
6
 
7
- $routes->connect('/pages/*', ['controller' => 'Pages', 'action' => 'home']);
7
+ $routes->connect('/pages/*', ['controller' => 'Pages', 'action' => 'display']);
8
8
 
9
9
 
10
10
 
@@ -12,7 +12,7 @@
12
12
 
13
13
  '/pages/lpo/',
14
14
 
15
- '/hoge',
15
+ '/hoge/',
16
16
 
17
17
  ['status' => 302]
18
18
 
@@ -24,4 +24,4 @@
24
24
 
25
25
 
26
26
 
27
- ref: https://book.cakephp.org/3.0/en/development/routing.html#redirect-routing
27
+ ref: [Routing](https://book.cakephp.org/3.0/en/development/routing.html#redirect-routing)