Myke623
Well-known member
Is there a recommended way of using a generic dialogue box for the purposes of informing/warning the user?
To date, I've been using a simple template:
In my controller, depending on what conditions are met I'll either return the intended view or the above "info" view with context specific $title, $subtitle and $message.
Just wondering if there's a facility within XenForo that will achieve the same thing and forgo the need for me to have this template?
To date, I've been using a simple template:
Code:
<xen:title>{$title}</xen:title>
<xen:h1>{$title}: {$subtitle}</xen:h1>
<div class="sectionMain">
<div class="primaryContent">{$message}</div>
<div class="sectionFooter overlayOnly">
<a class="button primary OverlayCloser">{xen:phrase close}</a>
</div>
</div>
In my controller, depending on what conditions are met I'll either return the intended view or the above "info" view with context specific $title, $subtitle and $message.
Just wondering if there's a facility within XenForo that will achieve the same thing and forgo the need for me to have this template?