UAP 4 Documentation - ErrorMessages

Welcome to UAP Docs - ErrorMessages

ErrorMessages Library

The ErrorMessages Library is designed to work site wide in UAP.

It is already included in the header file of UAP.

use Libs\ErrorMessages;

echo ErrorMessages::display();
echo ErrorMessages::display_raw($error);

You can use this Library on current page, or automaticly redirect to selected page.

To use it on current page just add the following to your Controller:

$data['error'] = "You had an error!"

To use it with a redirect to a new page just add the following to your Controller:

ErrorMessages::push('You Must Login To Do That!', 'Login');

It can also be used to refresh current page.

ErrorMessages::push('Ooops! You had an Error!', '');

- Can't find what your looking for? Please use Forum.

UAP 4 Documentation - ErrorMessages

Last Reply