app/Controller/BannerController.php 1 location
|
@@ 65-72 (lines=8) @@
|
| 62 |
|
|
| 63 |
|
$image = $_FILES['imagem']; |
| 64 |
|
|
| 65 |
|
if (!empty($image['name'])) { |
| 66 |
|
$retorno = $this->uploadImage($image); |
| 67 |
|
|
| 68 |
|
if (!$retorno['status']) |
| 69 |
|
$this->Session->setFlash('Não foi possivel salvar a imagem tente novamente'); |
| 70 |
|
|
| 71 |
|
$dados['imagem'] = $retorno['nome']; |
| 72 |
|
} |
| 73 |
|
|
| 74 |
|
|
| 75 |
|
$dados['id_usuario'] = $this->instancia; |
app/Controller/ProdutoController.php 1 location
|
@@ 393-400 (lines=8) @@
|
| 390 |
|
|
| 391 |
|
$image = $_FILES['imagem']; |
| 392 |
|
|
| 393 |
|
if (!empty($image['name'])) { |
| 394 |
|
$retorno = $this->uploadImage($image); |
| 395 |
|
|
| 396 |
|
if (!$retorno['status']) |
| 397 |
|
$this->Session->setFlash('Não foi possivel salvar a imagem tente novamente'); |
| 398 |
|
|
| 399 |
|
$dados['imagem'] = $retorno['nome']; |
| 400 |
|
} |
| 401 |
|
|
| 402 |
|
|
| 403 |
|
$dados['id_usuario'] = $this->instancia; |