Ejemplo n.º 1
0
 /**
  * Paging ajax pattern
  */
 public function actionPaging()
 {
     $page = $this->request->getParam('page', 1);
     $query = $this->request->getArray('query');
     $paging = app()->blogService()->loadAdminPostPaging($query, $page);
     $lp = new BlockParams($this->request->getParam('lp'));
     $html = $this->partial($lp->itemScript(), ['paging' => $paging, 'lp' => $lp]);
     $this->response = ['html' => $html];
 }
Ejemplo n.º 2
0
 /**
  *
  */
 public function actionPaging()
 {
     $page = $this->request->getParam('page', 1);
     $query = $this->request->getArray('query');
     $paging = app()->user()->loadUserPaging($query, $page);
     $lp = new BlockParams($this->request->getParam('lp'));
     $html = $this->partial($lp->itemScript(), ['paging' => $paging, 'lp' => $lp]);
     $this->response = ['hasNext' => $paging->hasNext(), 'hasPrev' => $paging->hasPrev(), 'query' => $query, 'pager' => $paging->getPager(), 'html' => $html];
 }
Ejemplo n.º 3
0
 /**
  *
  */
 public function actionPaging()
 {
     $page = $this->request->getParam('page', 1);
     $query = $this->request->getArray('query');
     $paging = app()->phraseService()->loadAdminPhrasePaging($query, $page);
     $lp = new BlockParams($this->request->getParam('lp'));
     $html = $this->partial($lp->itemScript(), ['paging' => $paging, 'lp' => $lp, 'langId' => $query['langId']]);
     $this->response = ['html' => $html, 'pager' => $paging->getPager(), 'query' => $query, 'hasNext' => $paging->hasNext(), 'hasPrev' => $paging->hasPrev()];
 }