root:
-- app
-- system
-- public
-- assets
-- index.php
-- InsiteFX (Modules HMVC)
-- Admin
-- Blog
-- Config
-- Controllers
-- Views
-- someView.php
app/Config/Autoload.php
public $psr4 = [
APP_NAMESPACE => APPPATH,
// InsiteFX Code Modules.
'InsiteFX\Admin' => ROOTPATH . 'InsiteFX/Admin', // InsiteFX/Admin Module
'InsiteFX\Blog' => ROOTPATH . 'InsiteFX/Blog', // InsiteFX/Blog Module
// Shield Auth Modules.
'CodeIgniter\Settings' => ROOTPATH . 'InsiteFX/settings/src', // Settings Module
'CodeIgniter\Shield' => ROOTPATH . 'InsiteFX/shield/src', // Shield Auth Module
];
InsiteFX/Blog/Controllers/Blog.php
return view('InsiteFX\Blog\Views\index', $this->viewData);