* finish task #4724.

This commit is contained in:
wangyidong
2018-09-12 17:12:58 +08:00
parent 464e8ebadf
commit 24cb0d757e
7 changed files with 18 additions and 7 deletions
+5 -1
View File
@@ -278,7 +278,11 @@ class block extends control
*/
public function dynamic()
{
$this->view->actions = $this->loadModel('action')->getDynamic('all', 'today');
/* Load pager. */
$this->app->loadClass('pager', $static = true);
$pager = new pager(0, 30, 1);
$this->view->actions = $this->loadModel('action')->getDynamic('all', 'today', 'date_desc', $pager);
$this->view->users = $this->loadModel('user')->getPairs('noletter');
$this->display();
}