I have a router
> $di->set('router', function () {
>
> $router = new \Phalcon\Mvc\Router();
>
> $router->add("/:module/:controller/:action/:params", array(
> 'module' => 1,
> 'controller' => 2, //'index',
> 'action' => 3, //'index',
> 'params' => 4,
> ));
> $router->setDefaultModule("entrance");
> $router->setDefaultController("index");
> $router->setDefaultAction("index");
> $router->notFound(
> array(
> "controller" => "index",
> "action" => "index",
> )
> );
> return $router;
>
> });
but when I access
https://localhost/somemodule/somecontroller/someaction/params
warning message
Missing argument 1 for \somemodule\somecontroller\someaction
even I tried to add
echo $this->router->getMatched();
but it returns nothing
can anyone help to resolve it?