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', )); 

    1 answer 1

    The pagination module for Kohana 3.2 is written and works quite well. Only, my advice to you, do not use pagination in the route !!! Transfer page data through $ _GET, trust experience!

    that's quite well described

    • From there he took an example - Chetson