Why can you add view to $this->view->assign()
雨譕
雨譕 2018-04-07 14:30:57
0
3
2956

$this->view->assign()Why can you add view

雨譕
雨譕

reply all(2)
小郑同学

Just look at the source code and you will know

Mr.Robot

Because view is an attribute in the controller, equivalent to new View();

  • reply Is it the protected $view; attribute in think\controller? What is the specific use of view?
    雨譕 author 2018-04-08 20:10:21
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template