layout = false; // Yii::$app->response->format = Response::FORMAT_HTML; list($imageBase64, $code) = VerifyImageUtil::CreateVerifyImage(); echo $code; // echo '

image 1

'; } /** * 获取小喇叭消息列表 */ public function actionGetBroadcastList() { return $this->render('get_broadcast_list'); } /** * 获取公告列表 */ public function actionGetNoticeList() { return $this->render('get_notice_list'); } public function actionShare() { $this->layout = false; Yii::$app->response->format = Response::FORMAT_HTML; return $this->render('share'); } }