【发布时间】:2011-04-22 12:08:28
【问题描述】:
所以我正在尝试使用子目录构建一条路线并遵循 Kerkness wiki 指南,但不断出现错误。如果有人能指出我做错了什么,我将不胜感激。
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
【问题讨论】: