Welcome Guest, Not a member yet? Register   Sign In
Can't get rid of routing to "public"
#6

I downloaded CI 4.4.8
Extract the .zip file
I went up to my domain meu.meusite.com.br (hostinger)
I configured my root directory to: meu.meusite.com.br/public
I configured App.php: public string $baseURL = 'https://meu.meusite.com.br/public/ (with and without slash)
I downloaded adminlte and within public I created the dist and plugins folders (adminlte)
Inside the VIEWS folder I created the admin folder and placed the dashboard.php file
and I created the templates folder (inside the VIEWS folder) with the following files: _footer.php, _header.php, _sidebar.php and admin_template.php.
When I type https://meu.meusite.com.br/ in the browser, the controller shows the VIEW but the ADMINLTE files that are in subfolders within /PUBLIC are not found.
href="https://meu.meusite.com.br/public/dist/css/adminlte.min.css" clicking on this link gives the error :Can't find a route for 'get: public/admin'.
What should I do?
In the browser console F12 presents some errors (8 errors): The resource “https://meu.meusite.com.br/public/dist/css/adminlte.min.css” was blocked due to the MIME type (“text /html”) does not match (X-Content-Type-Options: nosniff).
Reply


Messages In This Thread
RE: Can't get rid of routing to "public" - by RRIOS - 08-10-2024, 01:49 PM



Theme © iAndrew 2016 - Forum software by © MyBB