PHP Classes

File: config/autoload.php

Recommend this page to a friend!
  Classes of Evandro de Oliveira   PHP Escrever Número Por Extenso   config/autoload.php   Download  
File: config/autoload.php
Role: Auxiliary script
Content type: text/plain
Description: Arquivo autoload
Class: PHP Escrever Número Por Extenso
Spell numbers using words in Portuguese
Author: By
Last change:
Date: 7 years ago
Size: 245 bytes
 

Contents

Class file image Download
<?php
//$dir = substr(realpath(__DIR__), 0, strpos(realpath(__DIR__), 'config'));
//require_once $dir . __CLASS__ . '.php';

spl_autoload_register(function ($class) {
    require_once(
str_replace('\\', '/', 'src/' . $class . '.php'));
});