php - Kohana 3: Routing with subdirectories error, controller does not exist -
so i'm trying build route sub directories , following kerkness wiki guide keep getting errors. if point out i'm doing wrong appreciate it.
http://kerkness.ca/wiki/doku.php?id=routing:building_routes_with_subdirectories
the code:
route::set('default', '(<directory>(/<controller>(/<action>(/<id>))))', array('directory' => '.+?')) ->defaults(array( 'directory' => 'admin', 'controller' => 'main', 'action' => 'index', ));
the url:
/admin/weather/feedback
the file:
/application/classes/controller/admin/weather/feedback.php class controller_admin_weather extends controller_admin_base {
the error:
reflectionexception [ -1 ]: class controller_admin_weather not exist
weather needs controller not feedback. make weather.php in admin folder , put controller controller_admin_weather , action action_feedback.
Comments
Post a Comment