cakecal / branches / master / config / routes.php

history
<?php

Router::parseExtensions('rss', 'json');

Router::connect('/', array('controller' => 'events', 'action' => 'index'));
Router::connect('/import', array('controller' => 'calendar', 'action' => 'import'));

Router::connect(
	'/:year/:month/:day',
	array('controller' => 'events', 'action' => 'index', 'month' => null, 'day' => null),
	array('year' => $Year, 'month' => $Month, 'day' => $Day)
);

Router::connect(
	'/events/:year/:month/:day',
	array('controller' => 'events', 'action' => 'index', 'month' => null, 'day' => null),
	array('year' => $Year, 'month' => $Month, 'day' => $Day)
);

?>