Karamellwuerfel Posted April 30, 2020 Report Share Posted April 30, 2020 (edited) Hello, is it possible to create own CodonEvents and then add Listeners to this created event? For example the existing event "bid_added". I want to create a new one "updated_flight". Is there anywhere a Codon documentation? I can't find one. I tried to just Dispatch an event and listen to it but this doesn't work for me... CodonEvent::Dispatch('updated_flight', 'ACARSData', $flight_info); public function __construct() { CodonEvent::addListener('Test', array('bid_added', 'updated_flight')); } public function EventListener($eventinfo) { if($eventinfo[0] == 'bid_added') { //something } if($eventinfo[0] == 'updated_flight') { TestData::test($eventinfo[2]); } } Thanks! Edited April 30, 2020 by Karamellwuerfel Quote Link to comment Share on other sites More sharing options...
PikoSim Posted April 30, 2020 Report Share Posted April 30, 2020 Are you trying to update using the database? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.