![]() |
Help events - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: Help events (/showthread.php?tid=85227) |
Help events - luisitoz - 12-06-2022 hello friends, i created an event calling a class, so far it works fine app/Config/Events.php Code: Events::on('post_controller_constructor', 'App\Libraries\Services\Checks\checkPermissions::check'); what I would like to know, what is the way to disable it in some controllers, since the class that I am calling uses the uri function and it is bringing me an error at startup and the best way would be to disable it in some controllers such as the main page and login Class: Code: <?php RE: Help events - plaztic - 12-08-2022 You can always use Filters to control which routes/controllers your class is run on. https://codeigniter.com/user_guide/incoming/filters.html |