I'm trying to set a default route like so:
$router->add("/", array(
"controller" => "search",
"action" => "index"
));
But it's having no effect. When I access https://mywebsite/ it still loads IndexController, indexAction instead of SearchController.
If I change the default controller than it works:
$router->setDefaultController('search');
Why the default route doesn't work?