Example #1
0
 /**
  * 输出tag支持
  *
  *      View::tag('test');
  *      View::tag('test','arg1','arg2');
  *
  * @param 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);
         }
     }
 }