Ejemplo n.º 1
0
 function run()
 {
     $this->formId = 'pagination.' . $this->formId;
     $rows = DB::pagination('comment', array('where' => array('slug_id' => Classes::one($this->slug), 'display' => $this->display), 'orderBy' => 'sort desc,id desc'), 'comment/ajax/index');
     echo $this->render('@app/modules/comment/widget/views/pagination', array('rows' => $rows, 'formId' => $this->formId));
 }