Skip to content

Allow loading Common.php function overrides #2101

Description

@lonnieezell

Originally discussed in this thread: https://forum.codeigniter.com/thread-74096.html

There is currently no elegant way for a developer to override any of the methods in Common.php. I think this can be remedied very simply:

  • In system/bootstrap check for the existence of a file, app/Config/Functions.php (or maybe app/Functions.php) prior to loading the Common.php file.
  • If it exists load it in.

That's it. If a developer needs to override the function he can do it directly in that file or load other files that contain it, and not feel dirty editing public/index.php.

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

    help wantedMore help is needed for the proper resolution of an issue or pull request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions