Esempio n. 1
0
 public function actionIndex()
 {
     $form = $_GET['form'];
     if ($form) {
         $rt = \app\core\Pagination::run('\\app\\modules\\comment\\models\\Comment', array('orderBy' => 'sort desc,id desc'));
     } else {
         $rt = \app\core\Pagination::run('\\app\\modules\\comment\\models\\Slug');
     }
     echo $this->render('index', array('models' => $rt->models, 'pages' => $rt->pages, 'form' => $form));
 }
Esempio n. 2
0
 public function actionIndex()
 {
     $rt = \app\core\Pagination::run('\\app\\modules\\image\\models\\Image', null, array('pageSize' => 50));
     echo $this->render('index', array('models' => $rt->models, 'pages' => $rt->pages));
 }
Esempio n. 3
0
 public function actionIndex()
 {
     $rt = \app\core\Pagination::run('\\app\\modules\\comment\\models\\Filter');
     echo $this->render('index', array('models' => $rt->models, 'pages' => $rt->pages));
 }
Esempio n. 4
0
 public function actionIndex($name = 'posts')
 {
     new FormBuilder('post');
     $rt = \app\core\Pagination::run('\\app\\modules\\content\\models\\NodeActiveRecord');
     echo $this->render('index', array('models' => $rt->models, 'pages' => $rt->pages));
 }
Esempio n. 5
0
 public function actionIndex()
 {
     $rt = \app\core\Pagination::run('\\app\\modules\\oauth\\models\\OauthConfig', array('orderBy' => 'sort desc,id desc'), array('pageSize' => 50));
     echo $this->render('index', array('models' => $rt->models, 'pages' => $rt->pages));
 }
Esempio n. 6
0
 public function actionIndex()
 {
     $value = Classes::get_config($this->config_key);
     $rt = \app\core\Pagination::run('\\app\\modules\\host\\models\\Host', array('orderBy' => 'sort desc,id desc'), array('pageSize' => 50));
     echo $this->render('index', array('models' => $rt->models, 'pages' => $rt->pages, 'value' => $value));
 }