Dear All,
- I am looking at facebook groups , for example if we have YII facebook group … ( we don’t have one
)
the link will be
https://www.facebook.com/groups/yii/
For creating event in groups , the link will be
https://www.facebook.com/groups/yii/events/
Here in our framework, groups is a controller , yii is an ID ( action GET parameter ) and events is an action
So in the URL, order should be groups/events/yii But actually it is groups/yii/events/ , action parameter is coming before action . Could someone let me know how it is possible ? What should I configure in URL manager to achieve this result ?
I am creating a control "place" and my URL link
http://mywebsite.com/place/list/Washington-52
displays the Washington city information , in my "list" action I am taking "Washington-52" as action GET parameter and parsing this string getting 52 value and passing 52 to database to get the information of the city.
From below , What should be the best approach ?using
http://mywebsite.com/place/list/52/Washington
( Two parameters , 52 as action ID parameter and "Washington" as title for SEO friendly URL )
or
http://mywebsite.com/place/list/Washington-52
( one parameter , parse the action parameter and get the value 52 )
Thanks a lot for looking at my questions
Regards
Yii Fan