Welcome Guest, Not a member yet? Register   Sign In
Code module not setting up
#5

(08-29-2022, 05:14 AM)kenjis Wrote: If you disable Auto-Discovery (of routing), the module's Routes.php is not loaded.
See https://codeigniter4.github.io/CodeIgnit...discoveryv


Auto discovery was already enabled in app/Config/Modules.php, still the module's route definition doesn't take effect.

PHP Code:
    public $enabled true

PHP Code:
    public $aliases = [
        'events',
        'filters',
        'registrars',
        'routes',
        'services',
    ]; 

Also, if there's a syntax error in the module's Routes.php, the program throws the error message, which hints that it is included/discovered.
Reply


Messages In This Thread
Code module not setting up - by leafface - 08-28-2022, 02:23 PM
RE: Code module not setting up - by iRedds - 08-28-2022, 02:49 PM
RE: Code module not setting up - by leafface - 08-29-2022, 03:10 AM
RE: Code module not setting up - by kenjis - 08-29-2022, 05:14 AM
RE: Code module not setting up - by leafface - 08-29-2022, 09:33 AM
RE: Code module not setting up - by kenjis - 08-29-2022, 06:39 PM
RE: Code module not setting up - by leafface - 08-30-2022, 06:07 AM
RE: Code module not setting up - by leafface - 08-30-2022, 07:46 AM
RE: Code module not setting up - by kenjis - 08-30-2022, 02:01 PM
RE: Code module not setting up - by leafface - 09-01-2022, 07:18 AM
RE: Code module not setting up - by InsiteFX - 08-31-2022, 12:13 AM



Theme © iAndrew 2016 - Forum software by © MyBB