Welcome Guest, Not a member yet? Register   Sign In
Myth-Auth in HMVC structure
#2

(This post was last modified: 08-25-2021, 01:38 AM by InsiteFX.)

I just place Myth/Auth in the root along with the system and app folders, works like a charm.

root folder
system
app
public
Myth
-- Auth
-- I copy all the src files into Auth.

I then set the autoload namespace to this.

PHP Code:
public $psr4 = [
        APP_NAMESPACE => APPPATH// For custom app namespace
        'Config'      => APPPATH 'Config',
        'Myth\Auth'  => ROOTPATH 'Myth/Auth',                  // Myth/Auth namespace
    ]; 

Thats how I do it, there is a tutorial on here some place that shows how to do it step by step.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
Myth-Auth in HMVC structure - by takbitdev - 08-24-2021, 03:15 AM
RE: Myth-Auth in HMVC structure - by InsiteFX - 08-25-2021, 01:33 AM
RE: Myth-Auth in HMVC structure - by ikesela - 08-25-2021, 01:44 AM
RE: Myth-Auth in HMVC structure - by InsiteFX - 08-26-2021, 02:10 AM



Theme © iAndrew 2016 - Forum software by © MyBB