In the documentation for Flash Messaging (https://docs.phalcon.io/5.0/en/flash#overview), in the sections that describe the setCssIconClasses() and setCustomTemplate() features, there needs to be some clarity given to how to use the icons when a custom template is used.
I would recommend something along the lines of:
"If you are using custom icons by calling setCssIconClasses(), you can include the custom icons in your setCustomTemplate() call this way:
' $template = '
%message%
';
$flash->setCustomTemplate($template);
'
This could be described in either section, but would help someone more easily use the icons in their template. I had to figure it out by trial and error until I hit on the correct combination.
In the documentation for Flash Messaging (https://docs.phalcon.io/5.0/en/flash#overview), in the sections that describe the setCssIconClasses() and setCustomTemplate() features, there needs to be some clarity given to how to use the icons when a custom template is used.
I would recommend something along the lines of:
"If you are using custom icons by calling setCssIconClasses(), you can include the custom icons in your setCustomTemplate() call this way:
' $template = '
This could be described in either section, but would help someone more easily use the icons in their template. I had to figure it out by trial and error until I hit on the correct combination.