Browse Source

更新目录

shish 1 year ago
parent
commit
20cfced37a
1 changed files with 11 additions and 1 deletions
  1. 11 1
      app-ghs/controllers/CsController.php

+ 11 - 1
app-ghs/controllers/CsController.php

@@ -43,7 +43,17 @@ use bizGhs\stock\classes\StockRecordClass;
 class CsController extends BaseController
 {
 
-    public $guestAccess = ['list'];
+    public $guestAccess = ['list', 'read'];
+
+    public function actionRead()
+    {
+        $phpExcelFile = Yii::getAlias("@vendor/phpoffice/phpexcel/");
+        $currentDirectory = getcwd();
+        echo $currentDirectory;
+//        require_once($phpExcelFile . 'Classes/PHPExcel/IOFactory.php');
+//        $objPHPExcel = \PHPExcel_IOFactory::load("05featuredemo.xlsx");
+//        var_dump($objPHPExcel);
+    }
 
     public function actionList()
     {