Exemplo n.º 1
0
 /**
  * @inheritdoc
  */
 public function renderEmpty()
 {
     // run normal parent implementation if view is not set
     if (empty($this->emptyView)) {
         return parent::renderEmpty();
     }
     // render closure/view
     return $this->emptyView instanceof Closure ? call_user_func($this->emptyView) : $this->getView()->render($this->emptyView, $this->emptyViewParams);
 }
Exemplo n.º 2
0
 /**
  * @inheritdoc
  */
 public function renderEmpty()
 {
     $empty = ArrayHelper::getValue($this->pager, 'indicatorEmpty');
     if (!$empty) {
         return parent::renderEmpty();
     }
     return Html::tag('div', $empty, ['id' => $this->getIndicatorEmptyId(), 'class' => self::KEY_INDICATOR_EMPTY]);
 }