Created
December 14, 2011 22:32
-
-
Save hafriedlander/1478872 to your computer and use it in GitHub Desktop.
SS3 configuration system blog post example 1 - existing configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
Director::addRules(50, array( | |
'admin/cms//$Action/$ID/$OtherID' => 'CMSMain' | |
)); | |
Director::addRules(1, array( | |
'$URLSegment//$Action/$ID/$OtherID' => 'ModelAsController', | |
)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
Director::addRules(10, array( | |
'$Controller//$Action/$ID/$OtherID' => '*', | |
)); | |
// Add default routing unless 'cms' module is present (which overrules this with a CMSMain controller) | |
Director::addRules(20, array( | |
'admin//$action/$ID/$OtherID' => '->admin/security' | |
)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment