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 string message (unknown $type, unknown $message)

Outputs a message

public __construct ([unknown $cssClasses]) inherited from Phalcon\Flash

Phalcon\Flash constructor

public Phalcon\FlashInterface setImplicitFlush (unknown $implicitFlush) inherited from Phalcon\Flash

Set whether the output must be implictly flushed to the output or returned as string

public Phalcon\FlashInterface setAutomaticHtml (unknown $automaticHtml) inherited from Phalcon\Flash

Set if the output must be implictily formatted with HTML

public Phalcon\FlashInterface setCssClasses (unknown $cssClasses) inherited from Phalcon\Flash

Set an array with CSS classes to format the messages

public string error (unknown $message) inherited from Phalcon\Flash

Shows a HTML error message

  1. <?php
  2. $flash->error('This is an error');

public string notice (unknown $message) inherited from Phalcon\Flash

Shows a HTML notice/information message

  1. <?php
  2. $flash->notice('This is an information');

public string success (unknown $message) inherited from Phalcon\Flash

Shows a HTML success message

  1. <?php
  2. $flash->success('The process was finished successfully');

public string warning (unknown $message) inherited from Phalcon\Flash

Shows a HTML warning message

  1. <?php
  2. $flash->warning('Hey, this is important');

public outputMessage (unknown $type, unknown $message) inherited from Phalcon\Flash

Outputs a message formatting it with HTML

  1. <?php
  2. $flash->outputMessage('error', message);