/** * Special method to load demo data for testing user interface pagination. This will load enough data to * test each type of pagination. Use this for development only. */ public function actionLoadPaginationDemoData() { if (!Group::isUserASuperAdministrator(Yii::app()->user->userModel)) { throw new NotSupportedException(); } UserInterfaceDevelopmentUtil::makePaginationData(); }
/** * Special method to load demo data for testing user interface pagination. This will load enough data to * test each type of pagination. Use this for development only. */ public function actionLoadPaginationDemoData() { if (Yii::app()->user->userModel->username != 'super') { throw new NotSupportedException(); } UserInterfaceDevelopmentUtil::makePaginationData(); }