yii-widgets

    2热度

    1回答

    鉴于我有插件: if ($content): echo Alert::widget([ 'options' => [ 'class' => 'alert-info', ], 'body' => $content, ]); endif; 此Widget我想渲染并不总是之后,例如保存和ATC。现在,现在我已经将该小

    0热度

    1回答

    echo Select2::widget([ 'model' => $vendorModel, 'attribute' => 'id', 'data' => $vendor, 'options' => ['placeholder' => 'Select a vendor ...'], 'pluginOptions' => [ 'allo

    4热度

    1回答

    在Yii2 CKEDITOR,我使用 use dosamigos\ckeditor\CKEditor; 此扩展为表示形式的CKEditor <?= $form->field($model, 'cmsdetails_ar')->widget(CKEditor::className(), [ 'options' => ['rows' => 6], 'preset' => '

    1热度

    1回答

    我有一个32列的数据库表,我成功地在yii2 gridview中显示它们。问题是32列不适合窗口。我想在底部添加一个水平滚动条。我怎样才能做到这一点? 下面是截图。

    0热度

    1回答

    我创造新的widget这样的: class Schedule extends CWidget { public $address = null; public $order = null;//order public function init() { if(isset($this->order)) $this->addres

    3热度

    2回答

    如何在gridview标题中添加colspan? 通常头看起来像这样... <table class="table"> <thead> <tr> <th>Header1</th> <th>Header2</th> <th>Header3</th> <th>Header4</th> <th>He

    0热度

    2回答

    我想用自定义查询使用CGridView,并试图构建一个非常简单,没有排序和东西。 我的视图包含简单CGridView $this->widget('zii.widgets.grid.CGridView', array( 'dataProvider'=>$dataProvider, )); 而且我的控制器传递$数据提供程序的视图 $count=Yii::app()->db->creat

    0热度

    1回答

    我的数据库结构如下 id : item : name : price 1 : framework : bootstrap : 90 1 : framework : zend : 100 1 : framework : drupal : 150 1 : responsive : no : 0 1 : responsive : yes : 50 我要呈现的结果具有相同的项目行必须有一

    0热度

    1回答

    我只想在yii2高级模板前端显示来自数据库的菜单。另外我有静态菜单。我使用菜单控件 这里是我的代码 <?php echo Menu::widget([ 'options' => ['class' => 'about_content'], 'items' => CMS::getCMSPages(), ]); ?>

    0热度

    1回答

    在我的Yii2应用程序中,我添加了扩展名select2,因为作曲家没有成功下载所有需要的库。所以我手动做,但我仍然有错误。任何帮助都是非常感谢。 Here is my error.