Home > Q&A > body text
$this->view->assign()Why can you add view
小郑同学2018-04-08 10:01:54
Just look at the source code and you will know
Mr.Robot2018-04-08 09:23:18
Because view is an attribute in the controller, equivalent to new View();
Is it the protected $view; attribute in think\controller? What is the specific use of view?