Просмотр поста #562133: JohnCMS 9.9: Migrating Old Custom Modules Using ?act= to the New Routing System

.
drevils

Thank you for your explanation.

I have one more question.

If I want to keep the old ?act= style, for example:

/stats/?act=browser
/stats/?act=visitors
/stats/?act=keywords

what is the recommended way to register the route in routes.php?

Should I create only a single route for /stats and then continue handling $_GET['act'] inside index.php, or is there a better approach recommended for JohnCMS 9.9?

A simple example for this type of module would be very helpful.

Thank you.