'maps', 'action' => 'view', '1'); /** * Here, we are connecting '/' (base path) to our site map. * It's hardcoded to map #1, but at some point we'll implement * a login mechanism and the default path will be to log on instead. */ Router::connect('/', $default_path); /* * Route for sandbox functionality */ Router::connect('/sand', array('sand_route' => true) + $default_path); Router::connect('/sand/:controller/:action/*', array('sand_route' => true, 'action' => null)); /* Unfortunately, for some reason we need an extra route to solve * a bug with form generation. When $this->data is set by the * controller, and a URL is generated by the FormHelper, this * route is required to ensure the form action is correct. An * example of a broken page is for /customers/edit/XX. It appears * the page location uses the route above, it's only URL generation * that seems to be broken. */ Router::connect('/sand/:controller/:action/:id/*', array('sand_route' => true,'action' => null, 'id'=>null)); /* * Route for developement functionality */ Router::connect('/dev', array('dev_route' => true) + $default_path); Router::connect('/dev/:controller/:action/*', array('dev_route' => true, 'action' => null)); /* Unfortunately, for some reason we need an extra route to solve * a bug with form generation. When $this->data is set by the * controller, and a URL is generated by the FormHelper, this * route is required to ensure the form action is correct. An * example of a broken page is for /customers/edit/XX. It appears * the page location uses the route above, it's only URL generation * that seems to be broken. */ Router::connect('/dev/:controller/:action/:id/*', array('dev_route' => true,'action' => null, 'id'=>null)); ?>