Hello all, I'm starting with CI4 (used CI3 for some projects) but this is my first time using routes and I want to know what do you recommend for this:
In my new project I want to have a website, its almost only static pages with some database calls (cities and product categories) and also will have a user area where they will be able to manage products.
According to docs should be like this:
/app <-- Everything else in the app
/website <-- All related to website
/public
/system
/tests
/writable
Website part should have only one controller and a view for any page (only 4 pages) and should work in root like this:
domain.com (home page)
domain.com/services
domain.com/products
domain.com/contact
App part should have everything else and should work with 'app' (or whatever) prefix like:
domain.com/app/login
domain.com/app/users
domain.com/app/products
domain.com/app/cities
.
.
Is this ok? Can anyone help me please with a routing example for achieving this?
Also should I use .env file for app settings or is it a better practice to create a dedicated config file for my app?