public function modelAction($actionData = false) {
+ $reason = false;
+
+ // If an error reason has been supplied
+ if (isset($actionData['reason']) && $actionData['reason'] != '') {
+ $reason = $actionData['reason'];
+ }
+
// Return status, any suggested view, and any data to controller
return array(
- 'status' => true,
- 'modelRedirect' => false,
- 'view' => 'admin/error/index.html',
- 'data' => false
+ 'status' => true,
+ 'modelRedirect' => false,
+ 'view' => 'admin/error/index.html',
+ 'data' => array(
+ 'reason' => $reason
+ )
);
}
<center>
<h3>Sorry, we've had some type of fatal error.</h3>
-
+ {if $reason}
+ <p class="glm-error">{$reason}</p>
+ {/if}
<p>Please try again. If you still get the same error, contact Gaslight Media at 231-487-0692 for assistance.</p>
</center>
<a href="{$thisUrl}?page={$thisPage}&glm_action=index&member={$memberID}&id={$memberInfoID}" class="nav-tab{if $thisAction==index || $thisAction==memberEdit || $thisAction==memberInfo} nav-tab-active{/if}">Member Dashboard</a>
{if $memberID}
{foreach $addOnTabs as $a}
- <a href="{$thisUrl}?page={$thisPage}&glm_action={$a.action}&member={$memberID}" class="nav-tab{if $thisAction==$a.action} nav-tab-active{/if}">{$a.text}</a>
+ <a href="{$thisUrl}?page={$thisPage}&glm_action={$a.action}{if isset($a.option)}&option={$a.option}{/if}&member={$memberID}" class="nav-tab{if $thisAction==$a.action} nav-tab-active{/if}">{$a.text}</a>
{/foreach}
{/if}