db = \Zend_Registry::get('db'); }else{ $this->db = $db; } $this->config = \Zend_Registry::get('config'); $this->table = new Table(); } public function checkParam(\Zend_EventManager_Event $e) { $data = $e->getParam('data'); if(!is_array($data)) { return "参数错误"; } return true; } }