Hi there,
i want to render a process.
I’m filling my model in the controller.
In this controller I’m doing some stuff which takes some minutes. (CURL Download)
In my View I want to show the process steps, so I need to render the view out of the controller.
To render the view I has to call
return $this->render('sync', [
'model' => $this->findModel($id),
]);
Is there any possibility to render/update the view without return. I need something like this
controller:
render layout
foreach ($lines as $line){
filling model
download $line with curl
render something like "download $line succeeded"
save model
}