New to Yii, I started playing around with it today.. anyways.. I am trying to figure out
a routing issue that I have... well its really NOT an issue but more of a concern. Currently reading the routing documentation lead me to modify the rules exactly how I want them to be (removing index.php, site controller, etc). Here is how I have the rules set.
'urlManager'=>array( 'urlFormat'=>'path', 'showScriptName' => false, 'caseSensitive' => true, 'rules' => array ( '/' => '/site/index', '<view:(about)>' => 'site/page', '<action:\w+>' => 'site/<action>', ), ),
now as you can see I have a rule for the view like <view:(about)>. My initial question is.. what if I had like 50 static pages.. how would I turn this in a way that I don't have to physically insert each and every single static page inside the rules regular expression?