I have:
public $staticRoutes = array(
'dog-toys' => 'Index',
) ;
if(array_key_exists($controller, $this->staticRoutes))
{
$controller = new $controller ;
}
The new $controller is becoming 'dog-toys', which is not what I want.
How can I change what I have so that $controller = new Index ; ?