Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter v4.5.5 bug fix released
#11

Example of how I have mine working:

PHP Code:
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); 
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#12

Great to see the new bug fixes in CodeIgniter v4.5.5! I appreciate the detailed changelog and upgrade guide. This version looks like a solid step forward with the fixes in the Validation class and refactoring improvements. Will definitely upgrade to avoid any issues!
Reply




Theme © iAndrew 2016 - Forum software by © MyBB