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
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
Post a Comment