Skip to content

Config files aren't discovered automatically when using the config() function. #1293

Description

@bvrignaud

I'm actually porting the Ion-Auth (3) to CI4.
You can have look to the wip here : https://github.com/bvrignaud/CodeIgniter-Ion-Auth/tree/4.
I'm based on Code Modules documentation.

As the documentation explain :

Config files are automatically discovered whenever using the config() function that is always available.

I have a config file in my module_directory/Config.
In my library / model / controller, I'm trying to load my config file with config('IonAuth')
But it can't be load.
It works only if I put my config file in application/Config.

Thanks

CodeIgniter 4 version
The last develop version

Context

  • OS: LMDE 3
  • Web server : Apache on docker
  • PHP version : 7.1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions