Hier werden die Unterschiede zwischen zwei Versionen gezeigt.
| Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
|
php:autoload [2015/04/10 16:14] webproducer angelegt |
php:autoload [2015/12/19 00:00] (aktuell) |
||
|---|---|---|---|
| Zeile 6: | Zeile 6: | ||
| function autoload( $className ) | function autoload( $className ) | ||
| { | { | ||
| - | include_once( $_SERVER['DOCUMENT_ROOT'] . "/class/class." . $className . ".php" ); | + | if( $className == "xajax" ) |
| + | include_once( $_SERVER['DOCUMENT_ROOT'] . "/xajax_06/xajax_core/xajax.inc.php" ); | ||
| + | else | ||
| + | include_once( $_SERVER['DOCUMENT_ROOT'] . "/class/class." . $className . ".php" ); | ||
| } | } | ||
| spl_autoload_register( 'autoload' ); | spl_autoload_register( 'autoload' ); | ||
| </code> | </code> | ||