Is this a bug or design choice? |
versions: ci4 4.04 and ci4 4.x latest develop branch.
file: app/config/app.php PHP Code: public $indexPage = 'index.php'; Url that I'm currently in: Code: http://localhost:8080/index.php/books/add when I try to echo current_url() in the view file. its returns, Code: http://localhost:8080/books/add See! there is no index.php part in the URL. I think this is a bug. this method should return url with the index.php part. In CI3 this was the default behaviour.
It is a design choice in my opinion because there is an official guide about how to remove index.php in the url.
(01-15-2021, 01:12 PM)demyr Wrote: It is a design choice in my opinion because there is an official guide about how to remove index.php in the url. I hope not. If they give the option to use URL with and without index.php, it should work regardless which way you decide to use.
CodeIgniter 4 tutorials (EN/FR) - https://includebeer.com
/*** NO support in private message - Use the forum! ***/ (01-15-2021, 04:05 PM)includebeer Wrote:(01-15-2021, 01:12 PM)demyr Wrote: It is a design choice in my opinion because there is an official guide about how to remove index.php in the url. Yeah! I agree with you. this is probably a bug. |
Welcome Guest, Not a member yet? Register Sign In |