public function actionIndex()
        {
                //设置当前view的params参数,
                $view = Yii::$app->view;
                $view->params['layoutData']='test';
                
                return $this->render('index');
        }


$this->params['layoutData']

 

 
转自:http://www.yiifans.com/forum.php?mod=viewthread&tid=20

相关文章:

  • 2022-12-23
  • 2021-11-30
  • 2021-12-28
  • 2021-10-05
  • 2021-05-18
  • 2021-11-10
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-08
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案