north 7 жил өмнө
parent
commit
b88c5112d0

+ 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);