Exemplo n.º 1
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     $this->driver = 'local';
     parent::init();
 }
Exemplo n.º 2
0
<?php

\yii\bootstrap\Modal::begin(['id' => 'imageModal', 'header' => '<h3>上传图片</h3>', 'footer' => \common\helpers\Html::button('插入', ['class' => 'btn btn-success', 'data-dismiss' => 'modal'])]);
echo \yidashi\webuploader\Webuploader::widget(['name' => 'markdown-image']);
?>

<?php 
\yii\bootstrap\Modal::end();