custom page with custom select2 submit form

  1. If Custom File with Include common files, then
  • select2 and jQuery are already included, you do not need to include them yourself.
  • the route is generated with $app->any() so you can access it by HTTP GET or HTTP POST.



If I used userfn.php for my getData code… >

You must not put your actions in Global Code directly. You should use Route_Action server event. A route can have parameters, read https://discourse.hkvstore.com/t/using-route-action-server-event-v2021/3393/1


I could create an empty file and insert (viewtopic.php?f=18&t=49920)

You better avoid doing that unless you fully understand why you want to do it that way.