Hi guys!
I created routing at:
$di->set('router', function () {
//return require_once 'app/config/routes.php';
$router = new Phalcon\Mvc\Router(false);
// Игнорим слеш в конце
$router->removeExtraSlashes(true);
$router->notFound(array(
'controller' => 'index',
'action' => '_404'
));
$router->add('/', array(
'controller' => 'index',
'action' => 'index',
));
$router->add('/geo', array(
'controller' => 'geo',
'action' => 'detect',
));
$router->add('/battle', array(
'controller' => 'battle',
'action' => 'view',
));
return $router;
});
what i doing wrong? every way i see index controller and index action :(