Kohana Route setup for different actions

43 views Asked by At

I have route like this (Kohana 3.3)

Route::set('project', 'project(/<action>(/<id>(/<idfile>)))')

now is possible querys like this

localhost/kohana/project/edit/16
localhost/kohana/project/list/

I want to use pagination on action list - so i need to change "id" to "page" in my route only on this action

Do I should use Regulars or theres a stock approach ?

1

There are 1 answers

0
YanAlex On

Solved by next Route

Route::set('project', 'project(/<action>(/page/<page>)(/<id>(/<idfile>)))')