Skip to content

Instantly share code, notes, and snippets.

@tedkulp
Created January 20, 2009 13:50
Show Gist options
  • Save tedkulp/49487 to your computer and use it in GitHub Desktop.
Save tedkulp/49487 to your computer and use it in GitHub Desktop.
<?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