Created
December 23, 2008 15:03
-
-
Save tedkulp/39351 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 | |
include_once('lib/silk/silk.api.php'); | |
$config = SilkYaml::load(join_path(ROOT_DIR, 'config', 'setup.yml')); | |
include_once('config/routes.php'); | |
//SilkDatabase::connect($config['database']['dsn'], $config['debug'], true, $config['database']['prefix']); | |
SilkRequest::setup(); | |
try | |
{ | |
$params = SilkRoute::match_route(SilkRequest::get_requested_page()); | |
var_dump($params); | |
} | |
catch (SilkRouteNotMatchedException $ex) | |
{ | |
var_dump("route not found"); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment