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

質問編集履歴

1

情報の追加

2016/12/23 05:52

投稿

smnsmn
smnsmn

スコア175

title CHANGED
File without changes
body CHANGED
@@ -17,4 +17,36 @@
17
17
  上記を実現させようとするならどのようにすればよいのでしょうか?
18
18
 
19
19
  どこをいじればいいのかも分からないので、ご教授頂けると幸いです。
20
- 何卒よろしくお願い致します。
20
+ 何卒よろしくお願い致します。
21
+
22
+ ##追記
23
+ **ご指摘いただきました点について下記の情報を追記します。**
24
+
25
+ ルーティングについては下記のように設定しています。
26
+ ```php
27
+ Router::prefix('test', function ($routes) {
28
+ $routes->fallbacks(DashedRoute::class);
29
+ $routes->connect('/', ['controller' => 'Hoge', 'action' => 'index']);
30
+ $routes->connect('/foo', ['controller' => 'Foo', 'action' => 'index']);
31
+ :
32
+ :
33
+ }
34
+ ```
35
+
36
+ 使用しているのはNginxです。
37
+
38
+ ```
39
+ location / {
40
+ root /path/to/cakephp/webroot;
41
+ index index.php index.html index.htm;
42
+
43
+ try_files $uri $uri/ /index.php?$args;
44
+
45
+ location ~ \.php$ {
46
+ fastcgi_pass 127.0.0.1:9000;
47
+ fastcgi_index index.php;
48
+ fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
49
+ include fastcgi_params;
50
+ }
51
+ }
52
+ ```