I am using joomla 1.5 and building a simple component for sfowing the states and cities of USA. The problem has arrised in my router.php file. My router.php is as follows
function DesignBuildRoute(&$query)
{
$segments = array();
if(isset($query['task']))
{
$segments[] = $query['task'];
unset($query['task']);
};
if(isset($query['state']))
{
$segments[] = $query['state'];
unset($query['state']);
};
return $segments;
}
function DesignParseRoute($segments)
{
$vars = array();
$vars['task'] = $segments[0];
$vars['state'] = $segments[1];
return $vars;
}
the problem is this, that i have got the required url, [menualias]/[state].html, but when I go to the page, object not found page is displayed. Can anyone help me. what is wrong with my router.php