I currently have the following rule entries in the UrlManager:
'doc/xyz' => array('resources/browse', 'urlSuffix' => '',
'defaultParams' => array('id' => '123')),
'doc/xyz/<view:\w+\.html>' => array('resources/browse', 'urlSuffix' => '',
'defaultParams' => array('id' => '123')),
The prototype of the resources controller look like this:
class ResourcesController { public function actionBrowse($id, $view = null) {} }
which allows me to reach the following URLs:
http://localhost/doc/xyz/main.html
Is it possible to combine the two rules into one? I am aware of the /* pattern, but that would catch everything and not populate the view parameter.