Kohana Query String URL Extension


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  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. ?>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.