Welcome Guest, Not a member yet? Register   Sign In
Why?
#8

(This post was last modified: 12-15-2022, 09:18 AM by donpwinston.)

(12-15-2022, 08:54 AM)superior Wrote: Why would you put that kind of debug information in the public root, you shouldn't need in a production environment?

There's also the error_404.php and the production.php

(12-15-2022, 08:57 AM)InsiteFX Wrote: I always create my folder structure like below:

root
-- app
-- system
-- public_html or public
---- assets
------ css
------ js
------ img
------ images
------ vendor
-------- jquery
------ plugins
-- writable

Then you can access them like below:

Code:
<link href="<?= base_url('assets/css/blog.css'); ?>" rel="stylesheet">

<script src="<?= base_url('assets/vendor/jquery/jquery-3.6.0.min.js'); ?>"></script>

Yeah, I do the same. I was complaining about the styles CI already setup to use. They put them in the app/Views/errors/html directory. There's also the Kint styles which is a mess. They should be fetched and not stuck in a style tag.
Simpler is always better
Reply


Messages In This Thread
Why? - by donpwinston - 12-14-2022, 07:07 PM
RE: Why? - by InsiteFX - 12-14-2022, 11:49 PM
RE: Why? - by donpwinston - 12-15-2022, 01:57 AM
RE: Why? - by kenjis - 12-15-2022, 04:00 AM
RE: Why? - by donpwinston - 12-15-2022, 06:00 AM
RE: Why? - by superior - 12-15-2022, 08:54 AM
RE: Why? - by donpwinston - 12-15-2022, 09:12 AM
RE: Why? - by InsiteFX - 12-15-2022, 08:57 AM



Theme © iAndrew 2016 - Forum software by © MyBB