db = \Zend_Registry::get('db'); } function view($uuid) { if(\Helpers\Uuid::test($uuid) !== true) { return "参数错误"; } $sql = "SELECT * FROM ".$this->tbl_metadata." WHERE uuid='$uuid'"; $rs = $this->db->query($sql); return $rs->fetch(); } }