输出tag支持
View::tag('test');
View::tag('test','arg1','arg2');
null Core_View::tag( string $keystr )
参数列表
参数 类型 描述 默认值 $keystr
string
$keystr
public static function tag($keystr)
{
// 获取当前的Tag
$tags = View::get_tag($keystr);
if ($tags)
{
$args = func_get_args(); // 获取所有参数
array_shift($args); // 将第一个参数移除
foreach ($tags as $tag)
{
$tag->run($args);
}
}
}