Home>Article>PHP Framework> How to make a pop-up window in Yii
YII2 Make a pop-up page and modify the content of the pop-up window
Recommendation: "yii tutorial"
template list. The source code of php is as follows
render('remarks',['model'=>$remarkModel]); ?>
Template pop-up tanchuang.php
Controller user.php
public function actionRemarksuser() { if(yii::$app->request->isAjax){ if ($model->load(Yii::$app->request->post()) && $model->validate()) { print_r($openId['fromusername']);//打印不出来,用JS调用实现参数打印 } return $this->renderAjax('remarks',['model'=>$model]); } }
The above is the detailed content of How to make a pop-up window in Yii. For more information, please follow other related articles on the PHP Chinese website!