Yii Framework Forum: Problems With Url Manager - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Problems With Url Manager Rate Topic: -----

#1 User is offline   moginn 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 315
  • Joined: 07-April 12
  • Location:Spain

Posted 09 January 2014 - 08:50 PM

Hi!

I have this website --> http://ho33.com. It has the following URL Manager:

'urlManager'=>array(
     'urlFormat'=>'path',
     'showScriptName'=>false,
          'rules'=>array(                                  
                '<lang:\w+>-<action:\w+>'=> 'site/<action>',
          ),
),


The site works well, but please notice this hyphen: <lang:\w+>-<action:\w+>. I would like to put a slash (<lang:\w+>/<action:\w+>) instead of the hyphen but if I do so the site doesn't display well.

Anyone knows why putting a slash the site works badly?

Thanks
0

#2 User is offline   Zein Miftah 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 19
  • Joined: 18-March 13

Posted 09 January 2014 - 10:00 PM

What is the result?
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users