Пример #1
0
 public function actionUser()
 {
     $usform = Yii::$app->request->post('UserRegistrationForm');
     if ($usform) {
         $model->attributes = $usform;
         if ($model->validate()) {
             Users::adduser($model);
             $model = new UserRegistrationForm();
             return $this->render('index', ['usermodel' => $model, 'artmodel' => $artmodel]);
         }
     }
 }
Пример #2
0
 public function db_users_find_23()
 {
     $mysql = $this->request->data['mysql'];
     $mongo = $this->request->data['mongo'];
     $lithium = "\r\nUsers::remove(\r\n\tarray('status'=>'D')\r\n);\r\n";
     Users::remove(array('status' => 'D'));
     $users = Users::find('all');
     $this->render(array('head' => false, 'template' => 'db_users_find', 'data' => compact('users', 'mysql', 'mongo', 'lithium')));
 }