I have this code

/**
         * Register routes
         */
        $di->set('router', function () {
            $router = new \Phalcon\Mvc\Router\Annotations(\FALSE);
            $router->removeExtraSlashes(\TRUE);
            $router->setUriSource(
                    \Phalcon\Mvc\Router\Annotations::URI_SOURCE_SERVER_REQUEST_URI);
            $router->addModuleResource('frontend', 'Multiple\Apps\Frontend\Controllers\Index', '/');
            $router->setDefaultModule('frontend');
            $router->notFound( array(
                "controller" => "index",
                "action"     => "page404"
            ));
            return $router;
        });

and I would like to have every method e.g. indexAction(), testAction etc. working.

right now it's notFound() and page404Action() for every URL I try:

r.g. https://localhost/2014/facebookclone/index

or

https://localhost/2014/facebookclone/index/index

or

https://localhost/2014/facebookclone/index/test

Everything is triggering

https://localhost/2014/facebookclone/index/page404

The controller is this: https://github.com/oleg578/Phalconskeletonmulti/blob/master/Multiple/apps/frontend/controllers/IndexController.php