如果这样来SAVE的话,将会只保存两个字段,一个是加速时间,一个是队伍名称。其它的将全置空
$team_model = new TeamInfo; $uid_result_info = $team_model->findByPk($uid); $team_model->speed_num_time = 1234566; $team_model->team_name = $uid_result_info['team_name'];
$criteria = new CDbCriteria; $criteria->addCondition( "`uid`=" . $uid ); $criteria->addCondition( "`stage`=".$stage ); $data = $this->find( $criteria );
$sql = "select id from props"; $rows = $connection->createCommand($sql)->queryAll();
图片上传设置 <?php $form = ActiveForm::begin( [ 'options' => [ 'enctype' => 'multipart/form-data'] ] ); ?>