public function autoAction() { $request = $this->getRequest(); $tags = $request->getParam('q'); $temp_tags = array(); $id = Model_Tags::getTagsByTitle($tags); if ($id) { foreach ($id as $t) { echo $t['name'] . "\n"; } } exit; }