Onex ecstore前台页面dialog的调用

在需调用dialog的html页面中插入本段代码。

link='<{link app=test ctl=site_test act=abc}>';
var dialog = new Dialog(link, {
     title: '前台弹框_标题',
     width: 658,              ///Dialog框的宽度
     height: 460,             ///Dialog框的高度
     modal:true,
     async: 'ajax'
});

相应的php文件 test.php

<?php
class test_ctl_site_test extends site_controller{
    #..code
    $this->pagedata['name'] = '我要显示在前台';
    echo $this->fetch('site/test.html');
    #..code
}

dialog框内的html

测试测试测试。弹框弹框。<{$name}>

测试效果如下:
1