This file contains hidden or 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 if (!defined('BASEPATH')) {exit('No direct script access allowed');} | |
/** | |
* | |
* Arquivo inserido em application/libraries/Twig.php | |
* | |
*/ | |
class Twig { | |
/** | |
* Referência da instância da classe CodeIgniter |
This file contains hidden or 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 if (!defined('BASEPATH')) {exit('No direct script access allowed');} | |
/** | |
* | |
* Arquivo inserido em application/libraries/Twig.php | |
* | |
*/ | |
class Twig { | |
/** | |
* Referência da instância da classe CodeIgniter |
This file contains hidden or 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 if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
/** | |
* | |
* Arquivo inserido em application/controller/Welcome.php | |
* | |
*/ | |
class Welcome extends CI_Controller { | |
/** |
This file contains hidden or 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
{ | |
"require": { | |
"twig/twig": "1.12.*@dev" | |
} | |
} |
This file contains hidden or 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 if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
/* | |
| ------------------------------------------------------------------- | |
| AUTO-LOADER | |
| ------------------------------------------------------------------- | |
| This file specifies which systems should be loaded by default. | |
| | |
| In order to keep the framework as light-weight as possible only the | |
| absolute minimal resources are loaded by default. For example, | |
| the database is not connected to automatically since no assumption |
This file contains hidden or 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
<!DOCTYPE html> | |
<html class="no-js" lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<title>{% block title %}Template Twig{% endblock %}</title> | |
<meta name="description" content=""> | |
<meta name="author" content=""> | |
<meta name="viewport" content="width=device-width"> |
This file contains hidden or 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
{% extends 'template.html.twig' %} | |
{% block content %} | |
{{ title }} | |
<div id="infoMessage">{{ message }}</div> | |
<div class="row"> | |
<div class="span4 offset4"> | |
<h1 class="offset1">Login</h1> |
This file contains hidden or 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 if (!defined('BASEPATH')) exit('No direct script access allowed'); | |
/** | |
* | |
* Arquivo inserido em application/config/twig.php | |
* | |
*/ | |
$config['template_dir'] = APPPATH.'views'; | |
$config['cache_dir'] = APPPATH.'cache/twig'; |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<phpunit | |
colors="true" | |
stopOnFailure="false" | |
backupGlobals="false" | |
backupStaticAttributes="false" | |
convertErrorsToExceptions="true" | |
convertNoticesToExceptions="true" | |
convertWarningsToExceptions="true" |
This file contains hidden or 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 | |
class VerificationTests extends CIUnit_TestCase { | |
/** | |
* Conteúdo que vai acontecer no início dos testes | |
* @return void | |
*/ | |
public function setUp(){ | |
parent::setUp(); |
OlderNewer