質問編集履歴
3
サーバ情報修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -58,7 +58,7 @@
|
|
58
58
|
|
59
59
|
# WEBサーバ
|
60
60
|
|
61
|
-
Server version: Apache/2.2.15 (Unix) Server built: Oct 19 2017
|
61
|
+
Server version: Apache/2.2.15 (Unix) Server built: Oct 19 2017
|
62
62
|
|
63
63
|
DocumentRoot /var/www/html/admin
|
64
64
|
|
2
サーバ情報追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -51,3 +51,15 @@
|
|
51
51
|
のURLでアクセスでき、indexActionで実際の処理を行い、パラメータとして「1」を受け取る
|
52
52
|
|
53
53
|
にはどうしたらよいのでしょうか?
|
54
|
+
|
55
|
+
(このcontrollerにあるActionならば、indexでなくてもよいです。)
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
# WEBサーバ
|
60
|
+
|
61
|
+
Server version: Apache/2.2.15 (Unix) Server built: Oct 19 2017 16:43:38
|
62
|
+
|
63
|
+
DocumentRoot /var/www/html/admin
|
64
|
+
|
65
|
+
FrameWorkの設置場所 /var/www/html/admin/library/Zend
|
1
やってみたことを追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -29,3 +29,25 @@
|
|
29
29
|
http://www.mydomain.com/{controller}/1
|
30
30
|
|
31
31
|
というURLでアクセスできるようにすることはできますか?
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
通常は、action名を省略するとindexActionが呼び出されます。
|
36
|
+
|
37
|
+
が、上記の
|
38
|
+
|
39
|
+
http://www.mydomain.com/{controller}/1
|
40
|
+
|
41
|
+
でアクセスすると
|
42
|
+
|
43
|
+
Message: Action "1" does not exist and was not trapped in __call()
|
44
|
+
|
45
|
+
というメッセージが返ってきます。予想どおり。
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
http://www.mydomain.com/{controller}/1
|
50
|
+
|
51
|
+
のURLでアクセスでき、indexActionで実際の処理を行い、パラメータとして「1」を受け取る
|
52
|
+
|
53
|
+
にはどうしたらよいのでしょうか?
|