PageRenderTime 20ms CodeModel.GetById 13ms app.highlight 2ms RepoModel.GetById 2ms app.codeStats 0ms

/controller/publicacao/salvar.php

https://bitbucket.org/denissilva/cgpdi_admin
PHP | 17 lines | 10 code | 7 blank | 0 comment | 0 complexity | 8d6d0d567987885949bdcff2f1973374 MD5 | raw file
 1<?php  
 2    require_once ('../../classes/Publicacao.php');
 3    require_once ('../../dao/PublicacaoDao.php');
 4    
 5    $publicacao = new publicacao();
 6    $dao     = new PublicacaoDao();
 7    
 8    try {
 9        $dao->inserir($_POST['id_projeto'], $_POST['area'], $_FILES['files'], $_POST['visualizacao']);
10    } catch (Exception $ex) {
11        return $ex->getMessage();
12    }
13    
14
15
16
17