PHP Classes

File: samples/custom.php

Recommend this page to a friend!
  Classes of adriano ghezzi   ghz PHP Autoloader   samples/custom.php   Download  
File: samples/custom.php
Role: Example script
Content type: text/plain
Description: sample using custom implementation
Class: ghz PHP Autoloader
Autoload classes scanning files in directories
Author: By
Last change:
Date: 5 years ago
Size: 301 bytes
 

Contents

Class file image Download
<?php

require_once "../ghzAutoloader.php";

ghzAutoloader::customImplementation([__DIR__ . DIRECTORY_SEPARATOR, __DIR__ . DIRECTORY_SEPARATOR . 'lib' . DIRECTORY_SEPARATOR],['.php','.inc']);

$one=new \myPckg\Core\classOne();
$h=new \myPckg\Helpers\helperOne();
$g=new \myPckg\includes\guiHelper();