/** * Action - suggestion * get a list of suggested tags to a request entered by the user * * Access to the action is possible in the following paths: * - /search/suggestion * @return void */ public function suggestionAction() { $q = trim($this->getRequest()->getPost('q')); $suggestions = Default_Model_DbTable_BlogPost::GetTagSuggestions($this->db, $q, 10); $this->sendJson($suggestions); }