i've a question on ko3 framework Pagination module. I have a route template like this: http://my-site.com/blog/1/page2 Here's the code from my bootstrap.php file:
Route::set('blog', 'blog(/<id>(/page<page>))')->defaults(array('controller' => 'blog', 'id' => 1, 'page' => 1));
everything works nice, but Pagination library generates dirty urls like
http://my-site.com/blog/1/page3?kohana_uri=blog%2F1
.
Here's the code that creates the pagination (in Controller_Blog)
$pag = Pagination::factory(array('total_items' => $total_posts, 'items_per_page' => 10, 'current_page' => array('source' => 'route', 'key' => 'page')));
$posts = $posts_model->selectPosts($section_id, $pag->offset, $pag->items_per_page);
$this->template->content = View::factory('html/blog', array('pag' => $pag));
How can I tell the Pagination module generate clean urls? When I remove trash from url manually, it works too.
Thanks in advance