'yii\filters\HttpCache', // 设置需要加载的缓存文件 // 'only' => ['index'], // 设置需要缓存的控制器 // 'lastModified' => function(){ // 设置 Last-Modified 头 // return 1548922; // }, // 'etagSeed' => function (){ // 设置 ETag 头 // return 'hello'; // } // ] // ]; // } /* * 菜单栏 * */ public function actionIndex() { $model = new \backend\server\Menus(); $row = $model->TopMenu(); // p($row); // exit; return $this->render('index',['model'=>$row]); } /* * 首页 * */ public function actionMain() { return $this->render('main'); } /* * 首页 -通知详情 */ public function actionShow() { return $this->render('show'); } }