32], [['TITLE'], 'string', 'max' => 255], [['CONTENT'], 'string', 'max' => 4000], [['TITLE'], 'unique'], [['ID'], 'unique'], ]; } /** * @inheritdoc */ public function attributeLabels() { return [ 'ID' => 'ID', 'TITLE' => Yii::t('app', 'title'), 'CID' => Yii::t('app', 'category'), 'CONTENT' => Yii::t('app', 'content'), 'STATUS' => Yii::t('app', 'state'), 'Order' => Yii::t('app', 'sort'), 'CREATED_AT' => Yii::t('app', 'createAt'), ]; } }