Welcome Guest, Not a member yet? Register   Sign In
Setting baseURL in Registrar not working
#10

(05-21-2025, 11:14 PM)petewulf1 Wrote: App Configuration is extending BaseConfig so it should be callable. Any plans to extend/fix this in future releases?

There's nothing to fix here - everything is working correctly, as already mentioned by other users.

To confirm, I ran a quick test:

Code:
composer create-project codeigniter4/appstarter ci461


Then I copied your code from the initial post and added a call to site_url() in the welcome_message.php view file.

I didn't encounter any issues. And the correct address was displayed: http://192.168.0.1:81/index.php

The same after setting:

Code:
CI_ENVIRONMENT = staging

Of course, I had to create a dedicated file in the app/Config/Boot/staging.php, but after that, again, the address was displayed correctly: http://mydomain.com/index.php

I simply can't reproduce the error you're describing on a fresh install.

If you have any additional details that could help us reproduce the behavior you're experiencing, please share them - otherwise, there's not much more we can do on our end.
Reply


Messages In This Thread
RE: Setting baseURL in Registrar not working - by michalsn - 05-22-2025, 12:10 AM



Theme © iAndrew 2016 - Forum software by © MyBB