Quantcast
Channel: Yii Framework Forum
Viewing all articles
Browse latest Browse all 18717

Urlmanager + Cpagination

$
0
0
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:
        '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 <_<

Viewing all articles
Browse latest Browse all 18717

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>