我有一个生成输出页面的自定义模块,我的问题是如何将 html 元素添加到输出中,例如标题和段落等。
我的模块如下
function mymodule_page() {
$output .= '<h3>'.t('Installs '.$cell).'</h3>';
$output .= theme('flot_graph', $graph1);
return $output;
}
这是正确的方法吗?
第二行应该是这样吗?
$output .= t('<h3>Installs '.$cell.'</h3>');