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)); }
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)); }
public function actionIndex() { $rt = \app\core\Pagination::run('\\app\\modules\\comment\\models\\Filter'); echo $this->render('index', array('models' => $rt->models, 'pages' => $rt->pages)); }
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)); }
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)); }
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)); }