Page 1 of 1

display errors

Posted: Tue Apr 11, 2017 4:48 pm
by stefwinter

i want to display errors. In PrestaShop I can display the errors with the function Tools::displayError() like this:

if (empty($email)) {
$this->errors[] = Tools::displayError('Email is empty.');
$this->doLog('ERROR: Email/username is empty');
} elseif (!Validate::isEmail($email)) {
$this->errors[] = Tools::displayError('Invalid email address.');
$this->doLog('ERROR: Invalid Email address');
Is there a similar way to do this in OpenCart? Is there a function i can use?


Re: display errors

Posted: Wed Apr 12, 2017 8:28 am
by Qphoria
display them where?