Yii Framework Forum: Parse Url As Defined In Rules - Yii Framework Forum

Jump to content

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

Parse Url As Defined In Rules Rate Topic: -----

#1 User is offline   VINAY Kr. SHARMA 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 151
  • Joined: 13-September 11
  • Location:Gurgaon

Posted 19 December 2012 - 05:33 AM

See rules for urlManager defined in config/main.php
...
'urlManager' => array(
	'urlFormat' => 'path',
	'rules' => array(
    	'<controller:\w+>/award-benefits' => '<controller>/Award_Benefits',
	),
),
...


Is there any function exists in framework to get actual mapped url for controller/action-method?

I'm trying to build sitemap.xml for website. So, all action methods I'm getting from controller class is like actionAward_Benefits and I want it parse it as defined in rules like award_benefits.
VINAY Kr. SHARMA
@vinaykrsharma
Facebook ID: vinaykrsharma
Blog

Co-operation comes from friendship, friendship comes from trust, and trust comes from kind-heartedness.
0

#2 User is offline   VINAY Kr. SHARMA 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 151
  • Joined: 13-September 11
  • Location:Gurgaon

Posted 24 December 2012 - 06:12 AM

ok,

No one is able to answer this!

:mellow:
VINAY Kr. SHARMA
@vinaykrsharma
Facebook ID: vinaykrsharma
Blog

Co-operation comes from friendship, friendship comes from trust, and trust comes from kind-heartedness.
0

#3 User is offline   codesutra 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 596
  • Joined: 15-March 11
  • Location:India

Posted 25 December 2012 - 02:40 AM

Check that link.
refer link.
CodeSutra
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