Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hooks::on not working (it was working some time ago) #383

Closed
samsonasik opened this issue Jan 20, 2017 · 1 comment
Closed

Hooks::on not working (it was working some time ago) #383

samsonasik opened this issue Jan 20, 2017 · 1 comment

Comments

@samsonasik
Copy link
Member

I tried:

// application/Config/Hooks.php
Hooks::on('pre_system ', function() {
    die('here');
});
Hooks::on('post_controller_constructor ', function() {
    die('here');
});
Hooks::on('pre_system ', function() {
    die('here');
});

And it still show Welcome page. It probably related with refactored CodeIgniter4 bootstrap ?

@samsonasik
Copy link
Member Author

Oops, sorry, it was a space.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant