当我使用一个模块时,我遇到了一些问题。出现了一些空白
$content='';
$vocab = vuagame_getVocByName("the_loai_game");
$terms = taxonomy_get_tree($vocab->vid);
foreach ($terms as $term) {
$content.="<div class='contentBox'>";
$content.="<div class='contentBoxHeader'>";
$content.="<a href='/category/".$term->tid."'>".$term->name."</a>";
$content.="</div>";
$content.="<table class='gameTable' cellspacing='0' cellpadding='5'>";
$content.= views_embed_view('home', 'page', $term->tid);
$content.="</table>";
$content.="<div class='seemorelink'><a href='/category/".$term->tid."'>Xem thêm</a></div>";
$content.="</div><br/>";
}
return $content;
这是检查元素的结果:
<div class="contentBox"><div class="contentBoxHeader"><a href="/category/23">18+</a></div>
"
"
<table class="gameTable" cellspacing="0" cellpadding="5"><tbody><tr>
有人能找出我的问题吗?非常感谢!