app/Controller/BannerController.php 1 location
|
@@ 63-70 (lines=8) @@
|
| 60 |
|
|
| 61 |
|
$image = $_FILES['imagem']; |
| 62 |
|
|
| 63 |
|
if (!empty($image['name'])) { |
| 64 |
|
$retorno = $this->uploadImage($image); |
| 65 |
|
|
| 66 |
|
if (!$retorno['status']) |
| 67 |
|
$this->Session->setFlash('Não foi possivel salvar a imagem tente novamente'); |
| 68 |
|
|
| 69 |
|
$dados['imagem'] = $retorno['nome']; |
| 70 |
|
} |
| 71 |
|
|
| 72 |
|
|
| 73 |
|
$dados['id_usuario'] = $this->instancia; |
app/Controller/ProdutoController.php 1 location
|
@@ 377-384 (lines=8) @@
|
| 374 |
|
|
| 375 |
|
$image = $_FILES['imagem']; |
| 376 |
|
|
| 377 |
|
if (!empty($image['name'])) { |
| 378 |
|
$retorno = $this->uploadImage($image); |
| 379 |
|
|
| 380 |
|
if (!$retorno['status']) |
| 381 |
|
$this->Session->setFlash('Não foi possivel salvar a imagem tente novamente'); |
| 382 |
|
|
| 383 |
|
$dados['imagem'] = $retorno['nome']; |
| 384 |
|
} |
| 385 |
|
|
| 386 |
|
|
| 387 |
|
$dados['id_usuario'] = $this->instancia; |