Example #1
0
 /**
  * @inheritdoc
  */
 public function behaviors()
 {
     return [['class' => SluggableBehavior::className(), 'attribute' => 'title', 'immutable' => true, 'ensureUnique' => true], ['class' => TimestampBehavior::className(), 'value' => new Expression('UTC_TIMESTAMP()')], ['class' => FileBehavior::className(), 'folderName' => 'common']];
 }
Example #2
0
 /**
  * @inheritdoc
  */
 public function behaviors()
 {
     return [['class' => FileBehavior::className(), 'folderName' => 'example']];
 }