PHP Classes

File: bootstrap.php

Recommend this page to a friend!
  Classes of Vagner vinicius bispo cantuares   Simple PHP i18n Class   bootstrap.php   Download  
File: bootstrap.php
Role: Auxiliary script
Content type: text/plain
Description: Inicialização - bootstrap
Class: Simple PHP i18n Class
Load and get application internationalized texts
Author: By
Last change: Corrigindo um erro de escrita no script.
Date: 10 years ago
Size: 861 bytes
 

Contents

Class file image Download
<?php
/**
 * Bootstrap
 *
 * @author Vagner V. B. Cantuares <vagner.cantuares@gmail.com>
 * @copyright copyright (c) copyright 2013
 * @license http://opensource.org/licenses/gpl-license.php GNU Public Licence (GPL)
 * @link https://www.facebook.com/vagner.cantuares
 */
 
/**
 * Define a separação dos diretórios.
 */
 
define('DS', DIRECTORY_SEPARATOR);

/**
 * Define o diretório da aplicação.
 */
 
define('APPDIR', __DIR__);

/**
 * Checa se o arquivo autoload de inicialização criada pelo composer existe.
 */
 
if (!file_exists(APPDIR . DS . 'vendor' . DS . 'autoload.php'))
 {
     die(
'First you need to install composer: composer install in the command prompt or do <a href="http://getcomposer.org/download/">download here</a>');
 }
 
/**
 * Inicia o autload.
 */
 
require APPDIR . DS . 'vendor' . DS . 'autoload.php';

?>