ViewController的构造方法
public function __construct(App $app)
{
parent::__construct($app);
$this->view = $app->make('think\View');
}
可不可以改成
public function __construct(App $app)
{
$this->view = $app->make('think\View');
parent::__construct($app);
}
这样在初始化initialize里可以调用view