public function getMerchantReceiptTemplate($merchant_id = '') { $tpl2 = Yii::app()->functions->getOption("merchant_receipt_content", $merchant_id); if (empty($tpl2)) { $tpl2 = EmailTPL::receiptMerchantTPL(); } return $tpl2; }