source:
branches/0.4/web/addons/job_monarch/dwoo/dwooAutoload.php
@
755
Last change on this file since 755 was 755, checked in by ramonb, 11 years ago | |
---|---|
File size: 314 bytes |
Line | |
---|---|
1 | <?php |
2 | |
3 | include dirname(__FILE__) . DIRECTORY_SEPARATOR . 'Dwoo'. DIRECTORY_SEPARATOR . 'Core.php'; |
4 | |
5 | function dwooAutoload($class) |
6 | { |
7 | if (substr($class, 0, 5) === 'Dwoo_' || $class === 'Dwoo') { |
8 | include DWOO_DIRECTORY . strtr($class, '_', DIRECTORY_SEPARATOR).'.php'; |
9 | } |
10 | } |
11 | |
12 | spl_autoload_register('dwooAutoload'); |
Note: See TracBrowser
for help on using the repository browser.