render('remarks',['model'=>$remarkModel]);"; then create a template pop-up window file, the code is "use yii\help"."/> render('remarks',['model'=>$remarkModel]);"; then create a template pop-up window file, the code is "use yii\help".">

Home>Article>PHP Framework> How to make a pop-up window in Yii

How to make a pop-up window in Yii

藏色散人
藏色散人 Original
2020-01-23 21:19:25 2583browse

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn