Welcome Guest, Not a member yet? Register   Sign In
CI4 autoloading with auto fallback to "core" implentation
#2

Namespace structure would look something like this.

Code:
Core                           app
|- Controllers                 |- Controllers
|- Views                       |- Views
|- Languages                   |- Languages
Customers                      Customers      (namespace Customers)
|-Customer_A                   |- CustomerA   (namespace Customers/CustomerA)
|  |-Controllers               |- Controllers (namespace Customers/CustomA/Controllers)
|  |-Views                     |- Views       (namespace Customers/CustomA/Views)
|  |-Languages                 |- Languages   (namespace Customers/CustomA/Languages)
|-Customer_B                   |- CustomerB   (namespace Customers/CustomerB)
|  |-Controllers               |- Controllers (namespace Customers/CustomB/Controllers)
|  |-Views                     |- Views       (namespace Customers/CustomB/Views)
|  |-Languages                 |- Languages   (namespace Customers/CustomB/Languages)

As far as auto fallback this is something that you would need to write.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
RE: CI4 autoloading with auto fallback to "core" implentation - by InsiteFX - 02-20-2021, 01:04 PM



Theme © iAndrew 2016 - Forum software by © MyBB