File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -103,8 +103,15 @@ public function set($message, array $options = [])
103
103
* Magic method for verbose flash methods based on element names.
104
104
*
105
105
* For example: $this->Flash->success('My message') would use the
106
- * success.ctp element under `App /Template/Element/Flash` for rendering the
106
+ * success.ctp element under `src /Template/Element/Flash` for rendering the
107
107
* flash message.
108
+ *
109
+ * Note that the parameter `element` will be always overridden. In order to call a
110
+ * specific element from a plugin, you should set the `plugin` option in $args.
111
+ *
112
+ * For example: $this->Flash->warning('My message', ['plugin' => 'PluginName']) would
113
+ * use the warning.ctp element under `plugins/src/Template/Element/Flash` for rendering
114
+ * the flash message.
108
115
*
109
116
* @param string $name Element name to use.
110
117
* @param array $args Parameters to pass when calling `FlashComponent::set()`.
You can’t perform that action at this time.
0 commit comments