【发布时间】:2013-04-24 14:33:39
【问题描述】:
我需要使用 php 变量作为弹出框的内容。这个我试过了,还是不行
<?php $comment = ORM::factory('mark')->getComment($user_id, $subject, $quarter1[$j][1], $quarter1[$j][0]); ?>
<a href="#" id="example" class="btn btn-success" rel="popover" data-content="<?php echo $comment;?>">hover for popover</a>
【问题讨论】:
-
$comment 是否回显一个值?还是这是问题所在?
-
$comment 返回一个没有问题的字符串。问题是我不知道如何在数据内容中使用它