Neuron-PHP

FlashMessageType : string
in package

Flash message types used throughout the CMS

Provides consistent keys for both session storage and view variables.

Table of Contents

Cases

ERROR  = 'error'
INFO  = 'info'
SUCCESS  = 'success'
WARNING  = 'warning'

Methods

viewKey()  : string
Get the view variable name for this flash message type

Cases

Methods

viewKey()

Get the view variable name for this flash message type

public viewKey() : string

Views expect capitalized variable names (e.g., $Success, $Error) while session storage uses lowercase keys (e.g., 'success', 'error')

Return values
string

The capitalized view variable name

On this page

Search results