How do I correctly setup routes in Kohana 3.3 where the name of my controller and directory are the same as in my example below?
/application/classes/Controller/Admin/Author.php - admin/author - admin/author/add - admin/author/edit /application/classes/Controller/Admin/Author/Book.php - admin/author/book - admin/author/book/add - admin/author/book/edit
When using the following routes in the specified order, I'm only able to access admin/author{/action}, but not admin/author/book{/action}.
Reversing the routing order gives me access to admin/author/book{/action}, but not admin/author{/action}
Route::set('admin', 'admin(/<controller>(/<action>(/<id>)))')
->defaults(array(
'directory' => 'admin',
'controller' => 'Main',
'action' => 'index',
));
Route::set('admin/author', 'admin/author(/<controller>(/<action>(/<id>)))')
->defaults(array(
'directory' => 'admin/author',
'controller' => 'Main',
'action' => 'index',
));