Created
January 20, 2009 13:50
-
-
Save tedkulp/49487 to your computer and use it in GitHub Desktop.
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 | |
//Automatically add some component routes -- see docs for details | |
//SilkRoute::build_default_component_routes(); | |
SilkRoute::register_route("/admin/:controller/:action/:id", array("component" => 'admin')); | |
SilkRoute::register_route("/admin/:controller/:action", array("id" => '', "component" => 'admin')); | |
SilkRoute::register_route("/admin/:controller", array("id" => '', 'action' => 'index', "component" => 'admin')); | |
//Catch-all goes here | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment