We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

I think of all the path followed by HTML. How to do?

like this: www.xxx.com/aa/bb => www.xxx.com/aa/bb.html

edited Mar '14

@panjilekenan

the only way i know (till now) how to solve this, is to use costum routes: https://docs.phalcon.io/en/latest/reference/routing.html#usage-examples

example: blog.dev/backend/dashboard.html

$router->add("/backend/:controller\.html", array(
    'module'        => 'backend',
    'controller'    => 1,
    'file'      => 2
));