Uploader

An all around general purpose file uploader for CakePHP. Packaged as a stand alone plugin with file validation, file scanning and support for a wide range of basic mime types.

Get Query String Param

Used to get the value of a get query string from the controller.

Function: _getQueryParam()
Category: CakePHP
Views: 2,387
Permalink - Tinylink

/**
 * Used to get the value of a get query string from the controller
 * @param mixed $var
 * @param mixed $default
 * @return mixed
 */
function _getQueryParam($var, $default = '') {
	return (isset($this->params['url'][$var])) ? $this->params['url'][$var] : $default;
}

Return to Snippets