💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
# Class **Phalcon\Flash\Direct**[](# "永久链接至标题") *extends* abstract class [*Phalcon\Flash*](#) *implements*[*Phalcon\FlashInterface*](#) This is a variant of the Phalcon\Flash that inmediately outputs any message passed to it ### Methods[](# "永久链接至标题") public **message** (*unknown* $type, *unknown* $message) Outputs a message public **output** ([*unknown* $remove]) Prints the messages accumulated in the flasher public **__construct** ([*unknown* $cssClasses]) inherited from Phalcon\Flash Phalcon\Flash constructor public **setImplicitFlush** (*unknown* $implicitFlush) inherited from Phalcon\Flash Set whether the output must be implicitly flushed to the output or returned as string public **setAutomaticHtml** (*unknown* $automaticHtml) inherited from Phalcon\Flash Set if the output must be implicitly formatted with HTML public **setCssClasses** (*unknown* $cssClasses) inherited from Phalcon\Flash Set an array with CSS classes to format the messages public **error** (*unknown* $message) inherited from Phalcon\Flash Shows a HTML error message ~~~ <?php $flash->error('This is an error'); ~~~ public **notice** (*unknown* $message) inherited from Phalcon\Flash Shows a HTML notice/information message ~~~ <?php $flash->notice('This is an information'); ~~~ public **success** (*unknown* $message) inherited from Phalcon\Flash Shows a HTML success message ~~~ <?php $flash->success('The process was finished successfully'); ~~~ public **warning** (*unknown* $message) inherited from Phalcon\Flash Shows a HTML warning message ~~~ <?php $flash->warning('Hey, this is important'); ~~~ public **outputMessage** (*unknown* $type, *string|array* $message) inherited from Phalcon\Flash Outputs a message formatting it with HTML ~~~ <?php $flash->outputMessage('error', message); ~~~ public **clear** () inherited from Phalcon\Flash Clears accumulated messages when implicit flush is disabled | - [索引](# "总目录") - [下一页](# "Class Phalcon\Flash\Exception") | - [上一页](# "Abstract class Phalcon\Flash") | - [API Indice](#) »