Kohana查询字符串URL扩展

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Kohana查询字符串URL扩展相关的知识,希望对你有一定的参考价值。

  1. <?
  2. class url extends url_Core {
  3. public static function get_query_string(Array $queryVars, $keepOld = false) {
  4. $current = input::instance()->get();
  5.  
  6. if($keepOld) $new = array_merge($current, $queryVars);
  7. else $new = $queryVars;
  8.  
  9. return http_build_query($new);
  10. }
  11. }
  12.  
  13. ?>

以上是关于Kohana查询字符串URL扩展的主要内容,如果未能解决你的问题,请参考以下文章