Пример #1
1
 /**
  * Create items paginator
  * @return VisualPaginator\Control
  */
 protected function createComponentVisualPaginator()
 {
     $control = new VisualPaginator\Control();
     $control->setTemplateFile('bootstrap.latte');
     $control->enableAjax();
     $that = $this;
     $control->onShowPage[] = function () use($that) {
         if ($that->isAjax()) {
             $that->redrawControl();
         }
     };
     return $control;
 }
Пример #2
0
 protected function createComponentPaginator()
 {
     $oNow = new VisualPaginator\Control();
     $oNow->setTemplateFile(__DIR__ . '/templates/paginator.latte');
     $oNow->disableAjax();
     return $oNow;
 }
Пример #3
0
 /**
  * Create items paginator
  * @return VisualPaginator\Control
  */
 protected function createComponentVisualPaginator()
 {
     $control = new VisualPaginator\Control();
     $control->setTemplateFile('bootstrap.latte');
     return $control;
 }