所以我试图建立一个路径与子目录,并遵循Kerkness wiki指南,但不断收到错误。如果有人能指出我做错了什么,我将不胜感激。Kohana 3:路由与子目录错误,控制器不存在
http://kerkness.ca/wiki/doku.php?id=routing:building_routes_with_subdirectories
代码:
Route::set('default', '(<directory>(/<controller>(/<action>(/<id>))))', array('directory' => '.+?'))
->defaults(array(
'directory' => 'admin',
'controller' => 'main',
'action' => 'index',
));
的网址:
/admin/weather/feedback
文件:
/application/classes/controller/admin/weather/feedback.php
class Controller_Admin_Weather extends Controller_Admin_Base {
错误:
ReflectionException [ -1 ]: Class controller_admin_weather does not exist