【发布时间】:2014-11-18 07:06:41
【问题描述】:
我有一个 html 标签 -
<li>
<a class="" href="http://www.sitename.com/logout">
<i class="icon-key"></i>
<span>Logout</span>
</a>
</li>
我想在CakePHP Html格式的html上面写-
我的代码-
<li>
<?php echo $this->Html->link(
$this->Html->tag('i', 'Logout', array('class' => 'icon-key')),
'/logout',
array('escape'=>false));
?>
</li>
我的代码运行良好,但 span 标记未显示。如何在上面的html中添加span标签?
谢谢
闲聊
【问题讨论】: