public function url($url = null, $full = false, $options = []) {
		if (is_string($url)) {
			$url = array_merge(['plugin' => 'media', 'admin' => false, 'controller' => 'media', 'action' => 'image'], [$url]);
		}

		// backward compatibility check, switches params 2 and 3
		if (is_bool($options)) {
			$tmp = $options;
			$options = $full;
			$full = $tmp;
		}

		$options = $this->pack($options);
		$options['hash'] = $this->hash($options);

		$url = array_merge((array)$url, $options + ['base' => false]);
		return Router::url($url, $full);
	}
public function url($url = null, $full = false, $options = []) {
		if (is_string($url)) {
			$url = array_merge(['plugin' => 'media', 'admin' => false, 'controller' => 'media', 'action' => 'image'], [$url]);
		}

		// backward compatibility check, switches params 2 and 3
		if (is_bool($options)) {
			$tmp = $options;
			$options = $full;
			$full = $tmp;
		}

		$options = $this->pack($options);
		$options['hash'] = $this->hash($options);

		$url = array_merge((array)$url, $options + ['base' => false]);
		return Router::url($url, $full);
	}
public function url ( $ url = null , $ full = false , $ options = [ ] ) { if ( is_string ( $ url ) ) { $ url = array_merge ( [ 'plugin' => 'media' , 'admin' => false , 'controller' => 'media' , 'action' => 'image' ] , [ $ url ] ) ; } // backward compatibility check, switches params 2 and 3 if ( is_bool ( $ options ) ) { $ tmp = $ options ; $ options = $ full ; $ full = $ tmp ; } $ options = $ this -> pack ( $ options ) ; $ options [ 'hash' ] = $ this -> hash ( $ options ) ; $ url = array_merge ( ( array ) $ url , $ options + [ 'base' => false ] ) ; return Router :: url ( $ url , $ full ) ; }
Finds URL for specified action and sign it.

Returns an URL pointing to a combination of controller and action. Param

@param  mixed  $url    Cake-relative URL, like "/products/edit/92" or "/presidents/elect/4"
or an array specifying any of the following: 'controller', 'action',
and/or 'plugin', in addition to named arguments (keyed array elements),
and standard URL arguments (indexed array elements)
@param bool $full If true, the full base URL will be prepended to the result
@param array $options List of named arguments that need to sign
@return string Full translated signed URL with base path and with
Finds URL for specified action and sign it .