Last active
May 19, 2021 10:06
-
-
Save ovicko/dd1a8897e11293900a5b93d20668b87c to your computer and use it in GitHub Desktop.
Trigger the event after bulk upload
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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