I've created module, that action show list of models with pagination: example.com/article/default/index?page=X
I want write rule, which it's looks like: example.com/article/X
My config:
Links in paginator genereted rigtht, but if I click in link I have 404 error.
P.S.: sry for my english
I want write rule, which it's looks like: example.com/article/X
My config:
'urlManager' => array( 'urlFormat' => 'path', 'showScriptName' => false, 'rules' => array( ... 'article/<page:\d+>' => 'article/default/index', ), ),
Links in paginator genereted rigtht, but if I click in link I have 404 error.
P.S.: sry for my english