模型代码: <?php namespace app\models; use yii\db\ActiveRecord; class Test extends ActiveRecord{ public function rules() { return [ ['title','string','length'=>[0,10]] ]; } } 控制器代码: public function actionTest(){ //添加数据 $test = new Test; $test->title =…
父窗口是由两个部分组成,一个html的table,一部分是extjs的gird. 点击grid面板[增加]按钮将会弹出非模态窗口进行新数据的编辑页面 下面是按钮的触发函数代码: var a = window.showModalDialog(url,window,"dialogWidth:900px;status:no;dialogHeight:480px;minimize:no;maximize:no"); if(a>=0){ winReflesh(store,a); }func…