当前位置: 首页>>代码示例>>PHP>>正文


PHP ListView::run方法代码示例

本文整理汇总了PHP中yii\widgets\ListView::run方法的典型用法代码示例。如果您正苦于以下问题:PHP ListView::run方法的具体用法?PHP ListView::run怎么用?PHP ListView::run使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在yii\widgets\ListView的用法示例。


在下文中一共展示了ListView::run方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: run

 /**
  * @inheritdoc
  */
 public function run()
 {
     parent::run();
     $id = $this->options['id'];
     ListViewAsset::register($this->getView());
     $this->registerClientOptions($id);
     $this->registerClientEvents($id);
 }
开发者ID:manyoubaby123,项目名称:imshop,代码行数:11,代码来源:ListView.php

示例2: run

 /**
  * Runs the widget.
  */
 public function run()
 {
     parent::run();
     $options = Json::htmlEncode($this->getClientOptions());
     $view = $this->getView();
     ListViewAsset::register($view);
     $view->registerJs("jQuery('#{$this->id}').yiiListView({$options});");
 }
开发者ID:roman444uk,项目名称:yii2,代码行数:11,代码来源:ListView.php

示例3: run

 /**
  * Runs the widget.
  */
 public function run()
 {
     $id = $this->options['id'];
     $view = $this->getView();
     $options = Json::encode(['options' => $this->clientOptions, 'encode' => $this->encode, 'action' => $this->action, 'method' => $this->method]);
     JuiAsset::register($this->getView());
     SortableListViewAsset::register($view);
     $view->registerJs("jQuery('#{$id}').sortableListView({$options});");
     parent::run();
 }
开发者ID:simplator,项目名称:base,代码行数:13,代码来源:SortableListView.php

示例4: run

 /**
  * @inheritdoc
  */
 public function run()
 {
     // print empty list when there is no data to show
     if (!$this->dataProvider->getCount() && !$this->showOnEmpty) {
         return $this->listEmpty();
     }
     // use parent rendering when it is first (not partial) request
     if (!static::isPartial($this->id)) {
         return parent::run();
     }
     // print partial list
     return $this->listPartial();
 }
开发者ID:dlds,项目名称:yii2-intercooler,代码行数:16,代码来源:InfiniteList.php

示例5: run

 /**
  * @inheritdoc
  */
 public function run()
 {
     // run normal parent implementation if view is not set
     if (empty($this->layoutView)) {
         parent::run();
         return;
     }
     // check for results
     if ($this->dataProvider->getCount() > 0 || $this->showOnEmpty) {
         // get content from closure or view
         $content = $this->layoutView instanceof Closure ? call_user_func($this->layoutView) : $this->getView()->render($this->layoutView, $this->layoutViewParams);
         // replace sections
         $sections = ['{summary}', '{items}', '{pager}', '{sorter}'];
         foreach ($sections as $section) {
             if (strpos($content, $section) !== false) {
                 $content = str_replace($section, $this->renderSection($section), $content);
             }
         }
     } else {
         $content = $this->renderEmpty();
     }
     echo $content;
 }
开发者ID:amnah,项目名称:yii2-classes,代码行数:26,代码来源:ExtListView.php

示例6:

        <?php 
echo $form->field($searchModel, 'bcc', ['options' => ['class' => 'col-lg-6']])->textInput();
?>

        <?php 
echo $form->field($searchModel, 'charset', ['options' => ['class' => 'col-lg-6']])->textInput();
?>

        <?php 
echo $form->field($searchModel, 'subject', ['options' => ['class' => 'col-lg-6']])->textInput();
?>

        <?php 
echo $form->field($searchModel, 'body', ['options' => ['class' => 'col-lg-6']])->textInput();
?>

        <div class="form-group col-lg-12">
            <?php 
echo Html::submitButton('Filter', ['class' => 'btn btn-success']);
?>
        </div>
    </div>

    <?php 
ActiveForm::end();
?>
</div>

<?php 
echo $listView->run();
开发者ID:Jaaviieer,项目名称:PrograWeb,代码行数:30,代码来源:detail.php


注:本文中的yii\widgets\ListView::run方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。