How do I correct this:
ob_start();
for($i = 0; $i < count($mails); $i++) {
ob_clean();
$mails[$i]['error'] = false;
$this->set('data',$mails);
$this->render('admin_sendmessage');
flush();
$this->SwiftMailer->close();
ob_flush();
}
Regards
On 12 Okt., 13:32, sucram <[EMAIL PROTECTED]> wrote:
> Hi!
>
> I'm writing a newsletters module, and I want to update the rendered
> view while i'm in the for loop ...
>
> #CODE
>
> for($i = 0; $i < count($mails); $i++) {
> //Here comes the send function ...
>
> $mails[$i]['error'] = false; //If everything is ok set error to false;
> $this->set('data',$mails);
>
> }
>
> $this->render('admin_sendmessage');
>
> Is there a way to update the view with flush()?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---