Return to Snippet

Revision: 14484
at June 5, 2009 07:44 by iloveitaly


Initial Code
<?
class url extends url_Core {
	public static function get_query_string(Array $queryVars, $keepOld = false) {
		$current = input::instance()->get();
		
		if($keepOld) $new = array_merge($current, $queryVars);
		else $new = $queryVars;

		return http_build_query($new);
	}
}

?>

Initial URL

                                

Initial Description

                                

Initial Title
Kohana Query String URL Extension

Initial Tags
url, query, extension

Initial Language
PHP