在 yii 应用程序内容中加载外部 url


Load external url in yii application content

有没有办法加载像 iframe 中的 http://www.google.com 这样的外部 url,喜欢

$this->beginWidget('zii.widgets.jui.CJuiDialog', array(
'id'=>'cru-dialog',
'options'=>array(
        'title'=>'Detail view',
        'autoOpen'=>false,
        'modal'=>false,
        'width'=>'95%',
        'height'=>800,
    ),
    ));
?>
<iframe id="cru-frame" width="80%" height="100%"></iframe>
<?php
$this->endWidget();
?>

或任何其他方法可以在应用程序内容中加载我们想要的URL。就像我们点击时一样邮件MISHR 链接从标头登录用户名和密码,然后www.mail.myapp.com/?u=r&p=rOR www.mis.myapp.com?u=r&p=r OR www.hr.myapp.com?u=r&p=r加载内容。

请帮帮我...

局部视图:

<?php $this->beginClip('externalUrl'); ?>
    <div class="cropDiv">
        <iframe></iframe>
    </div>
    <?php $this->endClip();
echo $this->clips['externalUrl']; ?>

现在,从 ajax 引入部分视图的内容并将其显示在对话框中。例:

$("#cru-dialog").html(response).dialog("open");