Yii Framework Forum: mapping url - Yii Framework Forum

Jump to content

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

mapping url Rate Topic: -----

#1 User is offline   ajaxian 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 154
  • Joined: 02-June 10

Posted 23 October 2010 - 04:08 AM

hi all,

is there a mean to have the possibility to write in page an url with this syntax

mywebsite.com/smart/one-idea which may be great for SEO and mapping this url to the right controller, e.g. mywebsite.com/xxxcontroller/yyyaction

I come from codeIgniter and this remapping is easy with route['smart/one-idea']='xxxcontroller/yyyaction'

I tried urlManager but it seems to provide a mean to write "beautiful" url in page but not creating this mapping with controller.
I mean I feel that I shall write a real named "smart" controller and a real named "one-idea" action (maybe oneIdea or one_idea) to have this mapping with yii

Don't know if i'm clear enougt ...
Thanks
0

#2 User is offline   ajaxian 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 154
  • Joined: 02-June 10

Posted 23 October 2010 - 05:00 AM

I progress using urlManager.

I can route static pages but I'm always unable to achieve this:

mywebsite.com/index.php/blabla/usefullaction to mywebsite.com/index.php/bla/actionx/1
for instance

is there an example of this somewhere or have you some hints ?

Thanks
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