Код: Выделить всё
public function beforeSave($insert)
{
if (parent::beforeSave($insert)) {
$this->date = date('d.m.Y',$this->date);
return true;
} else {
return false;
}
}
Код: Выделить всё
public function beforeSave($insert)
{
if (parent::beforeSave($insert)) {
$this->date = date('d.m.Y',$this->date);
return true;
} else {
return false;
}
}
Код: Выделить всё
[
'attribute' => ''something'
'content' => function($model){
return // вставляете что хотите
}
]