怎么实现路由的伪静态

可以在用url生成的后面中拼接自定义.html等后缀名 并且在控制器中获取的参数 能过滤掉.html等后缀名

$di->set('router', function() {
        $router = new \Phalcon\Mvc\Router(false);
        //不知道你是这个意思么?
        $router->add(
            "/test/signup.html",
            array(
                "controller" => "signup",
                "action"     => "test",
            )
        );
        $router->add(
            "/test/register.html",
            array(
                "controller" => "signup",
                "action"     => "register",
            )
        );
        return $router;
    },true);
    // Handle the request
    $application = new Application($di);

    echo $application->handle()->getContent();