Skip to main content
Bounty Ended with 50 reputation awarded by Divya Sekar
When add a new image, it reflects undefined 'proimage' , this if condition solve that issue
Source Link

Just add these two line before $model->setData($formData);

if(!empty($post['proimage']['value']))
{
    $imageName = $post['proimage']['value'];
    $post['proimage'] = $imageName;
}

Just add these two line before $model->setData($formData);

$imageName = $post['proimage']['value'];
$post['proimage'] = $imageName;

Just add these two line before $model->setData($formData);

if(!empty($post['proimage']['value']))
{
    $imageName = $post['proimage']['value'];
    $post['proimage'] = $imageName;
}
added 1 character in body
Source Link
Rakesh Donga
  • 5.4k
  • 2
  • 25
  • 57

Just add these two line before $postModel$model->setData($post$formData);

$imageName = $post['proimage']['value'];
$post['proimage'] = $imageName;

Just add these two line before $postModel->setData($post)

$imageName = $post['proimage']['value'];
$post['proimage'] = $imageName;

Just add these two line before $model->setData($formData);

$imageName = $post['proimage']['value'];
$post['proimage'] = $imageName;
deleted 35 characters in body
Source Link
Rakesh Donga
  • 5.4k
  • 2
  • 25
  • 57

Just add these two line before $postModel->setData($post)

Its works fine, its solve my issue

$imageName = $post['proimage']['value'];
$post['proimage'] = $imageName;

Just add these two line before $postModel->setData($post)

Its works fine, its solve my issue

$imageName = $post['proimage']['value'];
$post['proimage'] = $imageName;

Just add these two line before $postModel->setData($post)

$imageName = $post['proimage']['value'];
$post['proimage'] = $imageName;
There is no define a offset as 0, when i remove a offset your logic work fines
Source Link
Loading
There is no define a offset as 0, when i remove a offset your logic work fines
Source Link
Loading
Source Link
Rakesh Donga
  • 5.4k
  • 2
  • 25
  • 57
Loading