我在模型 public function getApplication()
{
return $this->hasOne(Applications::className(), ['application_id' => 'application_id']);
}
public function getAccount()
{
return $this->hasOne(Ac
由於某些要求,我需要在單選按鈕列表中顯示帶有標籤的圖像。 我搜索了How to insert an Image List into a radioButtonList?。並納入變化。 查看 <?php
$model->pay_type = 1;
echo $form->field($model, 'pay_type')->radioList($model->paymentOptionRadio
我想只更新一個表中的列更新表中的行,當我得到這個錯誤: Call to a member function load() on null
這是我的行動: public function actionAddNote(){
$id = \Yii::$app->request->post('id');
$model = MainRequest::findOne($id);