title | layout |
---|---|
View render event-Bagisto |
default |
{:.pencil-icon} edit on github{:.edit-github target="_blank"}
{: .screenshot-dimension .center}
To render any template before or after any function we may use view_render_event
-
Create the page you want to render on view
-
Use the name of event with function view_render_event
-
This will automatically fire and the page will be included
As , it is fired before and after the event so, this event helps to inject anything before or after the content.