Answer the question
In order to leave comments, you need to log in
How to make CNC pagination in Yii1?
Hello. I'm learning Yii, I ran into a problem with setting up the CNC.
I wrote the following setting in the config:
'kvartiry-prodam' =>'/category/index/id/apartamentsold',
'kvartiry-prodam/<id:\d+>'=>'view/apartamentsold/',
Answer the question
In order to leave comments, you need to log in
Approximately like this:
array(
'defaultParams' => array('id' => 'apartmentsold'),
'route' => 'category/index',
'pattern' => 'kvartiry-prodam?page=<page>'
)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question