File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -168,15 +168,13 @@ For example, imagine you're processing a :doc:`form </forms>` submission::
168168
169169 // add flash messages
170170 $flashes->add(
171- 'warning ',
172- 'Your config file is writable, it should be set read-only '
171+ 'notice ',
172+ 'Your changes were saved '
173173 );
174- $flashes->add('error', 'Failed to update name');
175- $flashes->add('error', 'Another error');
176174
177- After processing the request, the controller sets a flash message in the session
178- and then redirects. The message key (``warning `` and `` error `` in this example) can be anything:
179- you 'll use this key to retrieve the message.
175+ After processing the request, the controller sets a flash message in the
176+ session and then redirects. The message key (``notice `` in this example)
177+ can be anything. You 'll use this key to retrieve the message.
180178
181179In the template of the next page (or even better, in your base layout template),
182180read any flash messages from the session using the ``flashes() `` method provided
You can’t perform that action at this time.
0 commit comments