A simple Router file for my joomla 1.6 project

<?php


defined('_JEXEC') or die;


function SwachipBuildRoute(&$query)
{
	// Declare static variables.

	// Initialise variables.
	$segments = array();
	
	
	return $segments;
}


function SwachipParseRoute($segments)
{
	$vars = array();
	print_r($segments);
	if ($segments)
	{
		$vars['view'] = $segments[0];
	}
	return $vars;
}