Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter4 Modular Structure Application Starter
#10

(This post was last modified: 03-01-2022, 01:38 AM by XMadMax.)

(03-01-2022, 01:24 AM)InsiteFX Wrote: If you want private modules then you should place them in the root along with the app and system folders

app
system
Modules
-- Blog
-- Users
-- etc;

Thanks for the tip, the modules directory can be placed anywhere, only changing the Autoload.php file:

Code:
public $psr4 = [
APP_NAMESPACE => APPPATH, // For custom app namespace
'Config'      => APPPATH . 'Config',
                APP_NAMESPACE.'/Controllers' => APPPATH.'Controllers',
                'Home' => APPPATH . '../Modules/Home' ,
                'Users' => APPPATH . '../Modules/Users' ,
                'Utils' => APPPATH . '../Modules/Utils'
];
Reply


Messages In This Thread
RE: CodeIgniter4 Modular Structure Application Starter - by XMadMax - 03-01-2022, 01:37 AM



Theme © iAndrew 2016 - Forum software by © MyBB