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
|
@@ 194-201 (lines=8) @@
|
| 191 |
|
|
| 192 |
|
$image = $_FILES['imagem']; |
| 193 |
|
|
| 194 |
|
if (!empty($image['name'])) { |
| 195 |
|
$retorno = $this->uploadImage($image); |
| 196 |
|
|
| 197 |
|
if (!$retorno['status']) |
| 198 |
|
$this->Session->setFlash('Não foi possivel salvar a imagem tente novamente'); |
| 199 |
|
|
| 200 |
|
$dados['imagem'] = $retorno['nome']; |
| 201 |
|
} |
| 202 |
|
|
| 203 |
|
|
| 204 |
|
$dados['id_usuario'] = $this->instancia; |