我需要创建下一个结构:
+controller ++admin +++catalog ++++category.php ++++product.php +++users
我需要通过url / admin / catalog / category / action / param打开它们 我试图创建路线:
Route::set('admin', '(<directory>(/<controller>(/<action>(/<custom_param>))))',array(
'directory' => '(admin/.*)'
))
->defaults(array(
'controller' => 'dashboard',
'action' => 'index'
));
答案 0 :(得分:0)
未经测试:
Route::set('admin', 'admin/<directory>/(<controller>(/<action>(/<custom_param>)))',
array(
'directory' => '(catalog|users)'
))
->defaults(array(
'controller' => 'dashboard',
'action' => 'index',
));