function getSign($params) { $bid = $params["bid"]; $mailClass = new Model_Mail(); $email = $mailClass->getEmailFromId($bid); $signature = $mailClass->getSignature($email); echo $signature; }