north 7 лет назад
Родитель
Сommit
b88c5112d0
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      www/protected/modules/j/controllers/QuestionController.php

+ 2 - 2
www/protected/modules/j/controllers/QuestionController.php

@@ -11,13 +11,13 @@ class QuestionController extends JBaseController
 {
     public function actionList()
     {
-         $tmp = Question::get(new MongoId('5aebea7d9f51603e1b8b46a6'));
+         /*$tmp = Question::get(new MongoId('5aebea7d9f51603e1b8b46a6'));
          for ($i=0;$i<20;$i++) {
              $q = new Question();
              $q->title = $tmp->title;
              $q->question = $tmp->question;
              $q->save();
-         }
+         }*/
         $pageParams = CommonFn::getPageParams();
         $cursor = Question::model()->findAll();
         $rows = CommonFn::getRowsFromCursor($cursor);