Source for file suggestions.json.php
Documentation is available at suggestions.json.php
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE
* Suggestions JSON controller for Finder.
* Method to find search query suggestions.
* @param boolean $cachable If true, the view output will be cached
* @param array $urlparams An array of safe url parameters and their variable types, for valid values see {@link JFilterInput::clean()}.
public function display($cachable =
false, $urlparams =
false)
if ($params->get('show_autosuggest', 1))
$model =
$this->getModel('Suggestions', 'FinderModel');
$return =
$model->getItems();
// Use the correct json mime-type
header('Content-Type: application/json');
Documentation generated on Tue, 19 Nov 2013 15:14:43 +0100 by phpDocumentor 1.4.3