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
|
@@ 427-434 (lines=8) @@
|
| 424 |
|
|
| 425 |
|
$image = $_FILES['imagem']; |
| 426 |
|
|
| 427 |
|
if (!empty($image['name'])) { |
| 428 |
|
$retorno = $this->uploadImage($image); |
| 429 |
|
|
| 430 |
|
if (!$retorno['status']) |
| 431 |
|
$this->Session->setFlash('Não foi possivel salvar a imagem tente novamente'); |
| 432 |
|
|
| 433 |
|
$dados['imagem'] = $retorno['nome']; |
| 434 |
|
} |
| 435 |
|
|
| 436 |
|
|
| 437 |
|
$dados['id_usuario'] = $this->instancia; |