Welcome Guest, Not a member yet? Register   Sign In
Exceptions exceptions...
#4

(This post was last modified: 04-20-2020, 01:04 AM by Leo.)

PHP Code:
try {
    $new_images $simpleImg->upload();
} catch (
ImageException $e) {
    if(substr($e066) === 'CodeIgniter\Images\Exceptions\ImageException: Your server does not') {
          $validation->setError('img_path'lang('mixed.imageException', [], 'custom'));
    }



Thanks for the tip with validation. It is now a lot easier to read than a flash message, along with other possible errors.
You can see things I made with codeigniter here: itart.pro its not overly impressive as I have very little time to learn.
Reply


Messages In This Thread
Exceptions exceptions... - by Gary - 04-17-2020, 07:07 AM
RE: Exceptions exceptions... - by Leo - 04-19-2020, 02:08 PM
RE: Exceptions exceptions... - by Gary - 04-19-2020, 04:20 PM
RE: Exceptions exceptions... - by Leo - 04-20-2020, 12:12 AM
RE: Exceptions exceptions... - by Gary - 04-20-2020, 02:56 AM
RE: Exceptions exceptions... - by Leo - 04-20-2020, 06:05 AM
RE: Exceptions exceptions... - by Gary - 04-20-2020, 06:52 AM
RE: Exceptions exceptions... - by Leo - 04-20-2020, 10:31 AM
RE: Exceptions exceptions... - by Gary - 04-20-2020, 01:51 PM



Theme © iAndrew 2016 - Forum software by © MyBB