How to clear output buffer - Joomla! Forum - community, help and support


i want send mail popup window.

to send formatted mail, used view/layout  called controler of component
after having sent mail want clear content of output buffer
to display short message "mail sent" in popup window , add button close it.

i have not found how reset output buffer.

i have tryed :
$document = &jfactory::getdocument();
$document->setbuffer("", "raw");
but buffer iis not reset.
and mail displayed in popup window

i tried bad thing encapsulating display with  ob_start,  ob_get_content , ob_end_clean
but header not set , following text bad formatted because css missing.

what way doing that?
thank help.



i use view format mail






Comments

Popular posts from this blog

DHT11 Time out error using v0.4.1library

Sketch upload fails with Java error (___REMOVE___/bin/avrdude)!

Arduino Uno + KTY81/210 temperature sensor