質問編集履歴
1
ルーティング設定追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -59,3 +59,97 @@
|
|
59
59
|
|
60
60
|
|
61
61
|
cakephpは正常に動いております。
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
追記(routers.php)
|
66
|
+
|
67
|
+
```ここに言語を入力
|
68
|
+
|
69
|
+
<?php
|
70
|
+
|
71
|
+
/**
|
72
|
+
|
73
|
+
* Routes configuration
|
74
|
+
|
75
|
+
*
|
76
|
+
|
77
|
+
* In this file, you set up routes to your controllers and their actions.
|
78
|
+
|
79
|
+
* Routes are very important mechanism that allows you to freely connect
|
80
|
+
|
81
|
+
* different URLs to chosen controllers and their actions (functions).
|
82
|
+
|
83
|
+
*
|
84
|
+
|
85
|
+
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
|
86
|
+
|
87
|
+
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
88
|
+
|
89
|
+
*
|
90
|
+
|
91
|
+
* Licensed under The MIT License
|
92
|
+
|
93
|
+
* For full copyright and license information, please see the LICENSE.txt
|
94
|
+
|
95
|
+
* Redistributions of files must retain the above copyright notice.
|
96
|
+
|
97
|
+
*
|
98
|
+
|
99
|
+
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
100
|
+
|
101
|
+
* @link http://cakephp.org CakePHP(tm) Project
|
102
|
+
|
103
|
+
* @package app.Config
|
104
|
+
|
105
|
+
* @since CakePHP(tm) v 0.2.9
|
106
|
+
|
107
|
+
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
108
|
+
|
109
|
+
*/
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
/**
|
114
|
+
|
115
|
+
* Here, we are connecting '/' (base path) to controller called 'Pages',
|
116
|
+
|
117
|
+
* its action called 'display', and we pass a param to select the view file
|
118
|
+
|
119
|
+
* to use (in this case, /app/View/Pages/home.ctp)...
|
120
|
+
|
121
|
+
*/
|
122
|
+
|
123
|
+
Router::connect('/', array('controller' => 'pages', 'action' => 'display', 'home'));
|
124
|
+
|
125
|
+
/**
|
126
|
+
|
127
|
+
* ...and connect the rest of 'Pages' controller's URLs.
|
128
|
+
|
129
|
+
*/
|
130
|
+
|
131
|
+
Router::connect('/pages/*', array('controller' => 'pages', 'action' => 'display'));
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
/**
|
136
|
+
|
137
|
+
* Load all plugin routes. See the CakePlugin documentation on
|
138
|
+
|
139
|
+
* how to customize the loading of plugin routes.
|
140
|
+
|
141
|
+
*/
|
142
|
+
|
143
|
+
CakePlugin::routes();
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
/**
|
148
|
+
|
149
|
+
* Load the CakePHP default routes. Only remove this if you do not want to use
|
150
|
+
|
151
|
+
* the built-in default routes.
|
152
|
+
|
153
|
+
*/
|
154
|
+
|
155
|
+
```
|