选择语言 :

 Core_View::tag

输出tag支持

 View::tag('test');
 View::tag('test','arg1','arg2');
null Core_View::tag( string $keystr )

参数列表

参数 类型 描述 默认值
$keystr string $keystr
File: ./core/classes/view.class.php
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);
        }
    }
}