我想在 yii 框架 application.How 中点击另一个应用程序的 url 来做到这一点?

I want to hit url of another application in a yii framework application.How to do that?

我想在 yii 框架 application.How 中点击另一个应用程序的 url 来做到这一点?

我可以在我自己的应用程序中这样做:

    <tr>
        <td>
        <?php echo CHtml::link('Agent', $this->createUrl('/agent/agent/admin')); ?>
        </td>
    </tr>

但我想通过应用在外面打一些url。怎么做?

如果你只想打 url 为什么不使用超级简单的 file_get_contents()

<?php file_get_contents('http://www.example.com'); ?>

你可以使用这个

CHtml::link( CHtml::image(Yii::app()->request->baseUrl . '/images/android.png'),('http://www.google.com'), array('class'=>" "));