Class Phalcon\Flash\Direct
extends abstract class Phalcon\Flash
implements Phalcon\Di\InjectionAwareInterface, Phalcon\FlashInterface
This is a variant of the Phalcon\Flash that immediately outputs any message passed to it
Methods
public message (mixed $type, mixed $message)
Outputs a message
public output ([mixed $remove])
Prints the messages accumulated in the flasher
public __construct ([mixed $cssClasses]) inherited from Phalcon\Flash
Phalcon\Flash constructor
public getAutoescape () inherited from Phalcon\Flash
Returns the autoescape mode in generated html
public setAutoescape (mixed $autoescape) inherited from Phalcon\Flash
Set the autoescape mode in generated html
public getEscaperService () inherited from Phalcon\Flash
Returns the Escaper Service
public setEscaperService (Phalcon\EscaperInterface $escaperService) inherited from Phalcon\Flash
Sets the Escaper Service
public setDI (Phalcon\DiInterface $dependencyInjector) inherited from Phalcon\Flash
Sets the dependency injector
public getDI () inherited from Phalcon\Flash
Returns the internal dependency injector
public setImplicitFlush (mixed $implicitFlush) inherited from Phalcon\Flash
Set whether the output must be implicitly flushed to the output or returned as string
public setAutomaticHtml (mixed $automaticHtml) inherited from Phalcon\Flash
Set if the output must be implicitly formatted with HTML
public setCssClasses (array $cssClasses) inherited from Phalcon\Flash
Set an array with CSS classes to format the messages
public error (mixed $message) inherited from Phalcon\Flash
Shows a HTML error message
$flash->error("This is an error");
public notice (mixed $message) inherited from Phalcon\Flash
Shows a HTML notice/information message
$flash->notice("This is an information");
public success (mixed $message) inherited from Phalcon\Flash
Shows a HTML success message
$flash->success("The process was finished successfully");
public warning (mixed $message) inherited from Phalcon\Flash
Shows a HTML warning message
$flash->warning("Hey, this is important");
public string | void outputMessage (mixed $type, string | array $message) inherited from Phalcon\Flash
Outputs a message formatting it with HTML
$flash->outputMessage("error", $message);
public clear () inherited from Phalcon\Flash
Clears accumulated messages when implicit flush is disabled
© 2011–2017 Phalcon Framework Team
Licensed under the Creative Commons Attribution License 3.0.
https://docs.phalconphp.com/en/latest/api/Phalcon_Flash_Direct.html