PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Nick Daniels  >  PHP Module Loader v2  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example File
Class: PHP Module Loader v2
Load classes that add modular functionality
Author: By
Last change:
Date: 6 years ago
Size: 272 bytes
 

Contents

Class file image Download
<?php

require_once 'lib/Autoloader.php';

spl_autoload_register('Autoloader::load');

$mod = new Modules;

print_r($mod->modules);

$mod->loadModule('Defaults');

$mod->modules['Defaults']->test();

$mod->unloadModule('Defaults');

print_r($mod->modules);

For more information send a message to info at phpclasses dot org.