there is an entry in routes:
$app->any(‘/clientsview[/{id}]’, ClientsController::class . ‘:view’)->add(PermissionMiddleware::class)->setName(‘clientsview-clients-view’); // view
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 want a custom php file to display records using the id when clicked.What will I do? I tried changing the path (remove .php and change to /) in custom file property and prefix in hyperlink property in the table but still error 404 Route not found.Thank you for the help.
Note that v2021 uses routing (read Migrating to v2021), in your case make sure you use Include common files for your Custom File. When you access the page, you use URL like //mysite/myapp/mycustomfile (no .php, not mycustomfile.php).Make sure also you have set up URL Rewrite properly, see the last post of https://discourse.hkvstore.com/t/migrating-to-v2022/655/1