我的路由设置如下:
Route::set('default', '(<controller>(/<action>(/<id>)))')
->defaults(array(
'controller' => 'static',
'action' => 'index',
));
这样输入:
应有的呼吁action_index
。Controller_Static
但是,当我输入:
我希望它会说“找不到 Controller_Test ”,但 Kohana 错过了它,我从 Apache 收到一条消息,上面写着“在此服务器上找不到请求的 URL /testkohana4/index.php/test。 ”
即使我将一个文件放入其中包含该类的controller
目录下,我仍然会收到 page-not-found 错误。test.php
Controller_Test
当我在 URL 中输入名称时,如何让 Kohana 调用特定控制器?