Vigilante

Vigliant Media Framework

Documentation

Function Reference

core.php

CatchError

Usage:

void CatchError(string message);

Description:

CatchError() prints out the error output message with a color specified by $config['catch_error_color']. Use this function to provide feedback regarding form handling.

Example 4-1-1
if ($result)
{
     $error = 'Could not perform task.';
}

echo "<p>" . CatchError($error) . "</p>";

CatchMessage

Usage:

void CatchMessage(string message);

Description:

CatchMessage() prints out the non-error output message with a color specified by $config['catch_message_color']. Use this function to provide feedback regarding form handling.

Example 4-1-2
if ($result)
{
     $msg = 'Task successful!';
}

echo "<p>" . CatchMessage($msg) . "</p>";

DebugTrace

Usage:

void DebugTrace(string message);

Description:

DebugTrace() prints out the debug message with a color specified by $config['debug_trace_color']. Use this function to output results of scripts, but make sure these statements are commented out or deleted in your final code.