Process After Webhook Response |
After considerable web searching using Stack Overflow in conjunction with the CI manual, I was able to to establish I need to apply a filter NOT event.
First I set up my filter. NOTE: as I only want the filter to apply AFTER the controller has run, i.e. after the controller has responded to the 3rd party webhook in a timely manner, I only need to define the after function. PHP Code: <?php namespace App\Libraries\Filters; PHP Code: public $aliases = [ Then, as I only want the filter to apply to a single controller and I don't want to list (and keep updating) all excluded controllers. I applied my alias to a url filter, NOT global. , Note: my before and after url pattern is an exact match to the controller I want this filter to be applied to (not sure if this is a proper usage, but it works!!) as I do not want it to be applied anywhere else. PHP Code: public $filters = [ Many thanks, I believe I have found a solution without the resource overhead of CRONs and database queries |
Messages In This Thread |
Process After Webhook Response - by 68thorby68 - 07-18-2023, 08:27 AM
RE: Process After Webhook Response - by badger - 07-18-2023, 10:19 AM
RE: Process After Webhook Response - by 68thorby68 - 08-08-2023, 03:53 AM
RE: Process After Webhook Response - by 68thorby68 - 08-08-2023, 09:01 AM
|