C:\OSPanel\modules\php\PHP-7.1-x64\php.exe C:/OSPanel/domains/fw.local/vendor/phpunit/phpunit/phpunit
'mailer' => [
'class' => 'zyx\phpmailer\Mailer',
'viewPath' => '@common/mail',
'useFileTransport' => false,
'config' => [
'mailer' => 'smtp',
'host' => 'smtp.yandex.com',
'port' => '465',
'smtpsecure' => 'ssl',
'smtpauth' => true,
'username' => 'admin@домен.ru',
'password' => 'пароль',
],
],
$query = new \yii\db\Query();
$query->select(['*'])
->from('table')
->where(array('in', 'id',$data))
->all();
$command = $query->createCommand();
$res = $command->queryAll();