當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。