Welcome Guest, Not a member yet? Register   Sign In
CI4 doesn't support hyphens/dashes in controller subdirectories
#6

(02-17-2021, 04:20 AM)kenjis Wrote: Why app/Controllers/Sub-dir/Home.php ?
Should it be app/Controllers/Sub_dir/Home.php in PSR-4?
Because, as I've described, I need *hyphens* in my url for SEO optimization. If you put the controller at app/Controllers/Sub_dir/Home.php, this url does not work:
Code:
https://www.example.com/sub-dir
uri dash translation doesn't work. You have to use an underscore in your url:
Code:
https://www.example.com/sub_dir
Reply


Messages In This Thread
RE: CI4 doesn't support hyphens/dashes in controller subdirectories - by sneakyimp - 02-17-2021, 06:38 AM



Theme © iAndrew 2016 - Forum software by © MyBB