Permalink
Browse files

Replacing "addRules" call with routes.yml file.

  • Loading branch information...
1 parent 4b71708 commit 5664aa61390e3d9922b3ade8f8431348982b19af @jflearn jflearn committed Mar 20, 2013
Showing with 7 additions and 4 deletions.
  1. +0 −4 _config.php
  2. +7 −0 _config/routes.yml
View
4 _config.php
@@ -2,7 +2,3 @@
/**
* @package silverstripe-linkmapping
*/
-
-Director::addRules(2, array(
- '$URLSegment//$Action/$ID/$OtherID' => 'LinkMappingFrontController'
-));
View
7 _config/routes.yml
@@ -0,0 +1,7 @@
+---
+Name: modelascontrollerroutes
+After: 'framework/routes#rootroutes'
+---
+Director:
+ rules:
+ '$URLSegment!//$Action/$ID/$OtherID': 'LinkMappingFrontController'

0 comments on commit 5664aa6

Please sign in to comment.