254], [['dt'], 'string', 'max' => 15], [['code'], 'unique'] ]; } public function getDate(){ return date("Y-m-d", $this->dt); } /** * @inheritdoc */ public function attributeLabels() { return [ 'id' => 'ID', 'name' => 'Name', 'code' => 'Code', 'brief' => 'Brief', 'content' => 'Content', 'sort_delete' => 'Sort Delete', 'title' => 'Title', 'kwords' => 'Kwords', 'descr' => 'Descr', 'dt' => 'Dt', 'is_active' => 'Is Active', 'mail_send' => 'Mail Send', 'mails_count' => 'Mails Count', 'img' => 'Img', ]; } }