Setting baseURL in Registrar not working |
Hey guys,
the registrar does not seem to work (at least for me). I followed th documentation and set it up like so: ------------------- Code: <?php I always get the error Fatal error: Uncaught CodeIgniter\Exceptions\ConfigException: Config\App::$baseURL "/" is not a valid URL. in ...\vendor\codeigniter4\framework\system\HTTP\SiteURI.php:201 Autodiscovery is set to true. Its only workig if a manually set the baseURL in App.php but the URL should be set dynamically based on the environment. CI3 was way more comfortable and dynamic to set up. Anybody knows the problem? Thanks and kind regards, Daniel
Hey michalsn,
i think you misunderstood. I do not want to add additional domains/subdomain, i want to extend the App config to set up one single base url based on my current environment so i don't have to mess up the original config files with custom code.
Unable to reproduce your error, here is a live example.
The code for app/Config/Registrar.php PHP Code: <?php |
Welcome Guest, Not a member yet? Register Sign In |