I have next rules for CUrlManager:
'rules' => array( 1: //'estate/viewQuickInfo/id/<id:\d+>' => array('estate/viewQuickInfo'), 2: '<estateTypeUrlTitle>/<cityUrlTitle>/<title>/<id:\d+>' => array('estate/view'), 3: 'estate/<title>/<id:\d+>' => 'estate/view', )
As i understood second rule should manage only urls with estateTypeUrlTitle, cityUrlTitle params:
<?php echo CHtml::link( $data->getCaption(), array( '/estate/view', 'estateTypeUrlTitle' => $data->type->urlTitle, 'cityUrlTitle' => $data->city->urlTitle, 'id' => $data->id, 'title' => $data->urlTitle, ), array('class' => 'location')); ?>
but current rules also manage any link with id. For example:
show same page, like http://heat.in/estate/view/id/305.
Then i uncomment rule 1 i have valid result for
http://heat.in/estate/viewQuickInfo/id/305 link, but i think it is invalid to add rule for each other controllers/action just so they will retain work?
Is it possible to do so second rule works only for URLs with estateTypeUrlTitle, cityUrlTitle params?