Hello,
Using the Yii URLManager component, I’d like to have static pages having a different name than the filename.
Example of redirection rule:
'urlManager'=>array(
'urlFormat'=>'path',
'showScriptName'=>false,
'urlSuffix'=>'',
'rules'=>array(
'info/xxxxxxxx' => 'site/page/view/howItWorks',
),
),
(xxxxxxxx being a different string than the text of the view file name: howItWorks.php)
With this config, the page ‘info/xxxxxxxx’ gets correctly called.
But the url attached to the HREF attribute of the HTML anchor tag generated by the createURL is still ‘site/page/view/howItWorks’ when I use a link in the CMenu like that :
items => array(
'label'=>'SOME TEXT...',
'url'=>array('site/page', 'view' => 'howItWorks'),
'linkOptions' =>array('title'=>'SOME TEXT...'),
),
What am I doing wrong ?
thanks in advance