Welcome Guest, Not a member yet? Register   Sign In
Create /public folder in a theme
#2

(This post was last modified: 12-20-2019, 06:01 AM by MGatner.)

Everything web accessible needs to be in public/. You could put your folders as you have it and then symlink them, but if public/ is your serve root (which it should be) then only files in there are reachable by the browser.

Aside, you might want to check out this theme module that makes it easy to save and switch themes:

https://github.com/tattersoftware/codeigniter4-themes

The other option if you absolutely need to have your files outside of public/ is to use a media server. I’m not sure if that is a good idea for core theme files though, performance wise.
Reply


Messages In This Thread
Create /public folder in a theme - by jean5769 - 12-20-2019, 03:31 AM
RE: Create /public folder in a theme - by MGatner - 12-20-2019, 05:59 AM
RE: Create /public folder in a theme - by MGatner - 12-21-2019, 05:10 AM



Theme © iAndrew 2016 - Forum software by © MyBB