Route 'myroute/view.php' not found

I have a 404 error like this
Route ‘myroute / view.php’ not found.

This error appears when clicking the button on the Custom File to point to another file
what is the solution

I have added a name to the path in the Custom File Properties, which only functions as a link from the menu to the Custom File but it gets an error if there is a button in the Custom File that leads to another file

There is no “.php” in a route. Read Migrating to v2021: https://phpmaker.dev/doc/migrate2021.htm, see the “Routing” section:

If you have any code that specifies a URL (e.g. pageRedirecting server event), you need to update it. In general, simply remove “.php” and the parameter names for the primary key fields, and separate them by “/”, e.g. change carsview.php?ID=1&foo=bar to carsview/1?foo=bar.

I found an error on the delete button in the 2020 demo project

Error

An internal error has occurred while processing your request

I assume you meant v2021 project, to enable debug, see http://www.hkvforums.com/viewtopic.php?f=18&t=49192.