Yii Framework Forum: URL Rewriting in Yii 1 - Yii Framework Forum

Jump to content

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

URL Rewriting in Yii 1 Change YII Default URL

#1 User is offline   khush@l 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 134
  • Joined: 26-March 13

Posted 26 May 2016 - 01:56 AM

Hi All,
I want to implement a functionality like adding multiple account like Google providing. Generally our URL structure is like below :


But I want to add 2 more parameters in that URL like below :

domain_name.com/u/0/employee/index (Give Employee-1 Details)
domain_name.com/u/1/employee/index (Give Employee-2 Details)
domain_name.com/u/2/employee/index (Give Employee-2 Details)

and in framework controller file I will fetch that 2 new values and apply my changes. Just I want to know that how to do it.
So if above 3 urls open in same browser but in different tabs, at that time, user will get details as per the URL given.
I am working with YII-1.

Thanks !!!

#2 User is offline   Patrick Jones 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 496
  • Joined: 14-July 12
  • Location:Berlin

Posted 26 May 2016 - 05:43 AM

This might help you: http://www.yiiframew...amed-parameters
Freelance developer for hire - send me a message!

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