Yii Framework Forum: Http://localhost/carbonbuster/quiz/view/winter%2Bis%2Bcold?author=Rkcbabu - Yii Framework Forum

Jump to content

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

Http://localhost/carbonbuster/quiz/view/winter%2Bis%2Bcold?author=Rkcbabu Rate Topic: -----

#1 User is offline   nirmalroka 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 53
  • Joined: 10-July 12
  • Location:Kathmandu Nepal

Posted 04 February 2013 - 12:48 AM

http://localhost/carbonbuster/quiz/view/Winter%2Bis%2BCold?author=rkcbabu


hi i had encode url using urencode in view and i want to use urldecoe in controller
but due to this url it can't find the controller action apecified by

url rule

'quiz/view/<id:[a-zA-Z0-9-]+>'=>'quiz/view',


this only allows a-zA-Z0-9 and - character i had tried

'quiz/view/<id:[a-zA-Z0-9-% ]+>'=>'quiz/view',

but i didn't work any one could help me in this matter.
0

#2 User is offline   alex-w 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 223
  • Joined: 25-November 10

Posted 04 February 2013 - 06:51 AM

Think this will work.
'quiz/view/<id:[a-zA-Z0-9\-]+>'=>'quiz/view',

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