public function gettagsAction() { $key = $this->_getParam("key"); $table = new Tagfield_Tagfield(); $tags = $table->getTagsByKey($key); $datas = array(); foreach ($tags as $tag) { $datas[] = array("value" => $tag["tag"]); } $this->_helper->json(array("datas" => $datas)); }