Hoping these have quick, simple answers.
I just downloaded the mvc/multiple example from GitHub (https://github.com/phalcon/mvc/tree/master/multiple).
In the bootstrap file (public/index.php) there are 4 route mappings.
First question: Why is the 1st route mapping needed when the previous line already sets "frontend" as the default module?
Second question: Why is the 4th route needed when the 1st one should already take care of it?
Thanks in advance for the help.
Here are the route mappings straight from the sample bootstrap file:
$router->setDefaultModule("frontend");
$router->add('/:controller/:action', array(
'module' => 'frontend',
'controller' => 1,
'action' => 2,
));
$router->add("/login", array(
'module' => 'backend',
'controller' => 'login',
'action' => 'index',
));
$router->add("/admin/products/:action", array(
'module' => 'backend',
'controller' => 'products',
'action' => 1,
));
$router->add("/products/:action", array(
'module' => 'frontend',
'controller' => 'products',
'action' => 1,
));