This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function salvar_atualizacao() { | |
$quarto = array( | |
'id_quarto' => $this->input->post('id_quarto'), | |
'ct_quarto' => $this->input->post('ct_quarto'), | |
'num_quarto' => $this->input->post('num_quarto'), | |
'jovem_quarto' => $this->input->post('jovem_quarto'), | |
'responsavel' => $this->input->post('responsavel'), | |
'localizacao' => $this->input->post('localizacao'), | |
'dataem' => $this->input->post('dataem') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# I use ENV variables to name my containers and set the ports | |
# to change, replate it here or in .env file | |
version: '2' | |
services: | |
php: | |
container_name: ${APP_NAME}-php | |
image: jlamim/php7-nginx | |
volumes: | |
- ./src:/var/www/src | |
links: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Versão do Docker Compose | |
version: '2' | |
# Define os serviços que serão utilizados | |
services: | |
php: | |
# Define o nome do container | |
container_name: ${APP_NAME}-php | |
# Define a imagem que será utilizada para o container | |
image: jlamim/php7-nginx | |
# Define os volumes, ou seja, o local onde estarão os arquivos da aplicação |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
defined('BASEPATH') OR exit('No direct script access allowed'); | |
/** | |
* Classe padrão do CodeIgniter | |
*/ | |
class Welcome extends CI_Controller { | |
/** | |
* Conjunto de informações sobre a aplicação |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Título que será exibido na documentação | |
title: 'Exemplo de documentação com CodeIgniter e APIGEN' | |
# Template utilizado na documentação: default, bootstrap | |
templateTheme: 'default' | |
# Diretório onde está o código-fonte que deve ter a documentação gerada | |
source: | |
- 'application' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php namespace Entity; | |
/** | |
* | |
* @Entity | |
* @Table(name="categoria") | |
*/ | |
class Categoria | |
{ | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
defined('BASEPATH') OR exit('No direct script access allowed'); | |
class Categoria extends CI_Controller { | |
public function add() | |
{ | |
// Instancia o objeto Categoria | |
$categoria = new Entity\Categoria(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Doctrine\Common\ClassLoader, | |
Doctrine\ORM\Tools\Setup, | |
Doctrine\ORM\EntityManager; | |
class Doctrine | |
{ | |
public $em; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
defined('BASEPATH') or exit('No direct script access allowed'); | |
/** | |
* Blade Integration Class | |
* | |
* Classe utilizada para integração entre o CodeIgniter e a Blade Template Engine | |
*/ | |
class Blade | |
{ | |
public function __construct() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
defined('BASEPATH') OR exit('No direct script access allowed'); | |
?><!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Integrando o Google reCaptcha com CodeIgniter</title> | |
<style type="text/css"> |
NewerOlder