data: {form:fd,field_model:window.image_input},
/usr/bin/php ~/domain/public_html/console/hello/index
Items::updateAll(['price' => new \yii\db\Expression('price * 1.1')]);Items::updateAll(['price' => new \yii\db\Expression('price * 0.9')]);
<?php
return [
'adminEmail' => 'admin@example.com',
];<?php
return [
'adminEmail' => 'test@prioriticlub.ru',
];$dataProvider->sort->attributes['author.name'] = [
'asc' => ['author.name' => SORT_ASC],
'desc' => ['author.name' => SORT_DESC],
];
<?php
error_reporting(E_ALL);
set_error_handler('eh');
function eh($severity, $message, $filename, $lineno) {
if (error_reporting() == 0) {
return;
}
if (error_reporting() & $severity) {
throw new ErrorException($message, 0, $severity, $filename, $lineno);
}
}
//$abc=NULL;
try {
if($abc===NULL) echo 'NULL';
} catch (Exception $e) {
echo 'NOT DEFINED';
}
?><?php
error_reporting(E_ALL);
//$abc=NULL;
if(array_key_exists('abc',get_defined_vars())) var_dump($abc);
else echo 'NOT DEFINED';
?>