21286 Posts in 5733 Topics by 2602 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 150 Views |
-
How to set a custom URL route to lowest priority?

19 November 2012 at 7:33pm Last edited: 20 November 2012 3:16am
I am trying to implement clean urls with an variable at the top level (without having a controller action in the URL)
ex. instead of http://domain.com/cont_action/MyVar having just http://domain.com/MyVar.The route below works, but it triggers before everything else. How can I specify my custom route to be the last one that is being checked (lowest priority even after the SiteTree)?
---
Name: approutes
After:
- 'framework/routes#rootroutes'
- 'framework/routes#coreroutes'
- 'framework/routes#modelascontrollerroutes'
---
Director:
rules:
'$MyVar': 'AppController' -
Re: How to set a custom URL route to lowest priority?

20 November 2012 at 11:12am
Is a custom handleRequest() override my only option? Anyone?
| 150 Views | ||
|
Page:
1
|
Go to Top |

