Hello!
Working a lot under codeigniter 3, I decided in 2022 to develop my future websites under codeigniter 4.
In order to do this well and not to reproduce the mistakes I made on CI3, I would have liked to know what you thought about the structure of my files?
- App
-- Config
--Controllers
--Database
--Filters
--Language
--Libraries
--Models
--ThirdParty
--Views
- Public
-- Assets
-- Js
-- Css
-- Imgs
-- Files
-- Uploads
-- Imgs
-- Products
-- Blog
-- Files
-- Cache
- Modules
-- Testimonials
-- Users
-- Products
-- Config
-- Languages
-- Fr
-- En
-- Controllers
-- Admin_controller
-- Public_controller
-- Models
-- Product_model
-- Product_prices_model
-- Views
-- Public
-- Gallery
-- Product sheet
-- Admin
-- Listing
-- Form
- Sytem
- Tests
- Writable
My main problem is that I would have liked to have modules that are easily independent of each other. The problem is that the assets of my modules (js, css and img), can't be in the modules directories but necessarily in the "public" directory. So, I find that my installation is less clean.
Do you have any suggestions ?
Thank you for taking the time to read me.
Sincerely.
Momox.