Flash::setDI

public setDI (Phalcon\DiInterface $dependencyInjector) Sets the dependency injector

Flashing Messages

Flash messages are used to notify the user about the state of actions he/she made or simply show information to the users. These kinds of messages can be generated using this component. Adapters This component makes use of adapters to define the behavior of the messages after being passed to the Flasher: Adapter Description API Direct Directly outputs the messages passed to the flasher Phalcon\Flash\Direct Session Temporarily stores the messages in session, then messages can be printed in the n

Flash::warning

public warning (mixed $message) Shows a HTML warning message $flash->warning('Hey, this is important');

Flash::success

public success (mixed $message) Shows a HTML success message $flash->success('The process was finished successfully');

Flash::setEscaperService

public setEscaperService (Phalcon\EscaperInterface $escaperService) Sets the Escaper Service

Flash::setCssClasses

public setCssClasses (array $cssClasses) Set an array with CSS classes to format the messages

Flash::setAutomaticHtml

public setAutomaticHtml (mixed $automaticHtml) Set if the output must be implicitly formatted with HTML

Flash::error

public error (mixed $message) Shows a HTML error message $flash->error('This is an error');

Flash::notice

public notice (mixed $message) Shows a HTML notice/information message $flash->notice('This is an information');

Flash::getAutoescape

public getAutoescape () Returns the autoescape mode in generated html