Skip to content

Instantly share code, notes, and snippets.

@ovicko
Last active May 19, 2021 10:06
Show Gist options
  • Save ovicko/dd1a8897e11293900a5b93d20668b87c to your computer and use it in GitHub Desktop.
Save ovicko/dd1a8897e11293900a5b93d20668b87c to your computer and use it in GitHub Desktop.
Trigger the event after bulk upload
<?php
public function actionBulk() {
$model = new Records();
//import excel sheet with 5k records
if ($model->customImport()) {
//trigger the send email event 
$model->trigger(Records::EVENT_SEND_EMAIL_UPDATE);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment