public function correctQuery($query = null, $queryCorrect = null, $target = null, $optUrl = null) {
		$result = '';
		if (!is_array($optUrl)) {
			$optUrl = [];
		}

		if (empty($query) || empty($queryCorrect)) {
			return $result;
		}

		$correct = true;
		$correctQueryMsg = $this->Html->tag('p', __d(
			'cake_search_info',
			'Showing results for "%s"',
			$this->Html->tag('em', $this->Html->link(
				h($queryCorrect),
				['?' => http_build_query(compact('target', 'correct') + ['query' => $queryCorrect])] + $optUrl
			))
		)) .
			$this->Html->tag('footer', __d(
				'cake_search_info',
				'Search instead "%s"',
				$this->Html->tag('em', $this->Html->link(
					h($query),
					['?' => http_build_query(compact('query', 'target', 'correct'))] + $optUrl
				))
			));
		$result = $this->Html->tag('blockquote', $correctQueryMsg);

		return $result;
	}
public function correctQuery($query = null, $queryCorrect = null, $target = null, $optUrl = null) {
		$result = '';
		if (!is_array($optUrl)) {
			$optUrl = [];
		}

		if (empty($query) || empty($queryCorrect)) {
			return $result;
		}

		$correct = true;
		$correctQueryMsg = $this->Html->tag('p', __d(
			'cake_search_info',
			'Showing results for "%s"',
			$this->Html->tag('em', $this->Html->link(
				h($queryCorrect),
				['?' => http_build_query(compact('target', 'correct') + ['query' => $queryCorrect])] + $optUrl
			))
		)) .
			$this->Html->tag('footer', __d(
				'cake_search_info',
				'Search instead "%s"',
				$this->Html->tag('em', $this->Html->link(
					h($query),
					['?' => http_build_query(compact('query', 'target', 'correct'))] + $optUrl
				))
			));
		$result = $this->Html->tag('blockquote', $correctQueryMsg);

		return $result;
	}
public function correctQuery ( $ query = null , $ queryCorrect = null , $ target = null , $ optUrl = null ) { $ result = '' ; if ( ! is_array ( $ optUrl ) ) { $ optUrl = [ ] ; } if ( empty ( $ query ) || empty ( $ queryCorrect ) ) { return $ result ; } $ correct = true ; $ correctQueryMsg = $ this -> Html -> tag ( 'p' , __d ( 'cake_search_info' , 'Showing results for "%s"' , $ this -> Html -> tag ( 'em' , $ this -> Html -> link ( h ( $ queryCorrect ) , [ '?' => http_build_query ( compact ( 'target' , 'correct' ) + [ 'query' => $ queryCorrect ] ) ] + $ optUrl ) ) ) ) . $ this -> Html -> tag ( 'footer' , __d ( 'cake_search_info' , 'Search instead "%s"' , $ this -> Html -> tag ( 'em' , $ this -> Html -> link ( h ( $ query ) , [ '?' => http_build_query ( compact ( 'query' , 'target' , 'correct' ) ) ] + $ optUrl ) ) ) ) ; $ result = $ this -> Html -> tag ( 'blockquote' , $ correctQueryMsg ) ; return $ result ; }
Return information about correction query of search.

@param string $query Query string
@param string $queryCorrect Corrected query string
@param array $target List of target fields
@param array $optUrl Array of extented options for URL
@return string Return information about correction query of search.
Return information about correction query of search .