set the "document root" to the public folder inside your project |
Setting your document root refers to web server configuration, eg setting the DocumentRoot inside Apache or your virtual host setting. If Apache's document root is "/projectroot/public", then your $baseURL will be "http://localhost" or the virtual host domain that you have setup.
If you need "public" inside your baseURL or as part of the location field inside your browser, then you haven't setup the server properly. See https://bcit-ci.github.io/CodeIgniter4/c...tml#public |
Welcome Guest, Not a member yet? Register Sign In |