在需调用dialog的html页面中插入本段代码。
1 link='<{link app=test ctl=site_test act=abc}>'
;
2 var dialog =
new Dialog(link, {
3 title: '前台弹框_标题'
,
4 width: 658,
///Dialog框的宽度
5 height: 460,
///Dialog框的高度
6 modal:
true,
7 async: 'ajax'
8 });
相应的php文件 test.php
1 <?
php
2 class test_ctl_site_test
extends site_controller{
3 #..code
4 $this->pagedata['name'] = '我要显示在前台'
;
5 echo $this->fetch('site/test.html'
);
6 #..code
7 }
dialog框内的html
1 <div>测试测试测试。弹框弹框。
<{$name}></div>
测试效果如下:
转载于:https://www.cnblogs.com/CHEUNGKAMING/p/4076438.html
相关资源:ECStore2.3.8无加密