phalcon-orphanage / docs

Phalcon Framework documentation
https://docs.phalcon.io
Other
321 stars 487 forks source link

[BUG]: Documentation Needs Description For Using %cssIconClass% in Flash Messaging setCustomTemplate() #3109

Closed kgrammer closed 1 year ago

kgrammer commented 1 year ago

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.

niden commented 1 year ago

Transferring to Docs

niden commented 1 year ago

Resolved in d5cf19a3aa420a418f42f5a927167498f0be46fc

Thank you @kgrammer for the report and example