Ejemplo n.º 1
0
 public function behaviors()
 {
     return [TimestampBehavior::className()];
 }
Ejemplo n.º 2
0
Archivo: Page.php Proyecto: ahb360/cms
 public function behaviors()
 {
     return array_merge(parent::behaviors(), [TimestampBehavior::className(), ['class' => FileBehavior::className(), 'groups' => ['image' => ['type' => FileBehavior::TYPE_IMAGE, 'rules' => ['extensions' => ['png', 'jpg', 'jpeg'], 'maxSize' => 1024 * 1024]]]]]);
 }