You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the CI4 branch, we are needing to replace hooks with events. Currently loading the page renders:
The Load_config class now exists in app/Events/Load_config.php and seems to be namespaced properly. The CI3 method of doing this allowed you to specify the director that the class was in but CI4 doesn't have this.
Load_config is now called in an event in the app/Config/Events.php file.
This is working now with the update to CI 4.3.1. Either a bug was fixed or possibly a previous install of CI4 did not fully merge all the files properly.
Activity
jekkos commentedon Nov 6, 2022
So does this mean we can get rid of the hooks.php? Currently git considers it removed, so I can just keep it that way?
objecttothis commentedon Jan 30, 2023
Correct, hooks become Events in CI4. I have moved the hooks in hooks.php to Events.php for now. We may need to adjust them later.
objecttothis commentedon Jan 30, 2023
This is working now with the update to CI 4.3.1. Either a bug was fixed or possibly a previous install of CI4 did not fully merge all the files properly.