Post by stefwinter » Tue Apr 11, 2017 4:48 pm

Hello,

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?

Thanks

Newbie

Posts

Joined
Tue Apr 11, 2017 4:41 pm

Post by Qphoria » Wed Apr 12, 2017 8:28 am

display them where?

OpenCart 2.0.x Mod Update Info

Image
Donate!|OpenCart Basics|GeoZones
Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am
Who is online

Users browsing this forum: No registered users and 4 guests