Route::set('modules', 'module/<controller>(/page/<pnum>)(/<action>(/<data>))', array( 'pnum'=>'[0-9]+' ))->defaults(array( 'controller' => 'index', 'action' => 'index', 'pnum' => 1, 'data' => '', ));
There is such a route for loading modules into the main controller, the module displays news via the link http://example/posts/index
but in the linker the links are generated according to this scheme http://example/module/posts/index
The question is - how do I choose the standard route for the module ??? The module is connected via Request::factory('module/posts')->execute();
Route::set('default', '(<page>(/page/<pnum>)(/<actname>(/<data>)))', array('pnum'=>'[0-9]+')) ->defaults(array( 'controller' => 'pages', 'action' => 'index', 'page' => 'homepage', 'actname' => 'index', ));