app/Controller/CategoriaBannerController.php 1 location
|
@@ 40-50 (lines=11) @@
|
| 37 |
|
} |
| 38 |
|
} |
| 39 |
|
|
| 40 |
|
public function editar_cadastro($id) { |
| 41 |
|
$categoria = $this->CategoriaBanner->find('first', |
| 42 |
|
array('conditions' => |
| 43 |
|
array( 'id' => $id ) |
| 44 |
|
) |
| 45 |
|
); |
| 46 |
|
|
| 47 |
|
$this->set('dados', $categoria); |
| 48 |
|
|
| 49 |
|
$this->layout = 'wadmin'; |
| 50 |
|
} |
| 51 |
|
|
| 52 |
|
public function s_editar_cadastro($id) { |
| 53 |
|
$dados = $this->request->data('dados'); |
app/Controller/CategoriaController.php 1 location
|
@@ 41-53 (lines=13) @@
|
| 38 |
|
} |
| 39 |
|
} |
| 40 |
|
|
| 41 |
|
public function editar_cadastro($id) { |
| 42 |
|
$this->loadModel('Categoria'); |
| 43 |
|
|
| 44 |
|
$categoria = $this->Categoria->find('first', |
| 45 |
|
array('conditions' => |
| 46 |
|
array( 'id' => $id ) |
| 47 |
|
) |
| 48 |
|
); |
| 49 |
|
|
| 50 |
|
$this->set('dados', $categoria); |
| 51 |
|
|
| 52 |
|
$this->layout = 'wadmin'; |
| 53 |
|
} |
| 54 |
|
|
| 55 |
|
public function s_editar_cadastro($id) { |
| 56 |
|
$this->loadModel('Categoria'); |
app/Controller/PluggtoController.php 1 location
|
@@ 14-25 (lines=12) @@
|
| 11 |
|
$this->loadModel('PluggtoConfiguracoes'); |
| 12 |
|
} |
| 13 |
|
|
| 14 |
|
public function configuracoes() { |
| 15 |
|
$dados = $this->PluggtoConfiguracoes->find('first', array( |
| 16 |
|
'conditions' => array( |
| 17 |
|
'PluggtoConfiguracoes.usuario_id' => $this->instancia |
| 18 |
|
) |
| 19 |
|
) |
| 20 |
|
); |
| 21 |
|
|
| 22 |
|
$this->set('dados', $dados['PluggtoConfiguracoes']); |
| 23 |
|
|
| 24 |
|
$this->layout = 'wadmin'; |
| 25 |
|
} |
| 26 |
|
|
| 27 |
|
public function salvar() { |
| 28 |
|
$dados = $this->request->data['dados']; |