【发布时间】:2012-02-22 09:55:02
【问题描述】:
如何在 cake php 中结束标签
在 cake 教程中给出了下面的 span 标签将由 html helper 形成,当 text 为 null 时。
<?php echo $this->Html->tag('span', null, array('class' => 'welcome'));?>
//Output
<span class="welcome">
但是,这里没有关于结束 span 标签的想法。如何给它 html helper
<span class="welcome">
//inner elements
</span>
cake php html helper 中是否有任何东西可以关闭任何元素标签,例如
<?php echo $this->Html->tag('span', 'close') ?>
将输出为
</span> .
【问题讨论】:
标签: cakephp cakephp-1.3 html-helper