In Yii 2.0 run save in ActiveRecord's AfterSave
$sumCollect = [];
$sumCollect['name'] = 'Lee';
$sumCollect['from'] = 'yiilib.com';
$this->updateAttributes($sumCollect);
$sumCollect = [];
$sumCollect['name'] = 'Lee';
$sumCollect['from'] = 'yiilib.com';
$this->updateAttributes($sumCollect);
YiiLib Foucs on: Pro Web Dev Tutorial and Pro Web Dev Service
Copyright © 2011 - 2024 YiiLib.com(YiiBlog.info) - Designed & Developed by Boy.Lee
Leave Comment