一.根据Excel模板导出excel 1.导入NPOI.dll 2.DAL中添加类ExportExcel.cs using NPOI.SS.UserModel; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Web; namespace DAL.Ass
controller\helloController.php<?php namespace app\controllers; use yii\web\Controller; class helloController extends Controller { public $layout = "common"; public function actionIndex(){ return $this->render("index");//renderPar