Exemplo n.º 1
0
 public function preform()
 {
     //        echo "WebSiteSittingModel.class.php";
     $DaoUser = new DaoUser();
     $result = $DaoUser->getUser();
     $limit = 7;
     $pageInfo = Tools::_pageInfo($this->params['safe']['page'], count($result), $limit);
     if (is_array($result)) {
         $result = array_slice($result, $pageInfo['start'], $pageInfo['limit']);
         //10
     }
     $this->result['data']['list'] = $result;
     $this->result['count'] = $DaoUser->getUserCount() / $limit;
     $this->result['page'] = $this->params['safe']['page'];
 }