2006-07-24 01:08:06 +04:00
|
|
|
<?php
|
2006-08-30 00:37:55 +04:00
|
|
|
require_once("path-to-doctrine/Doctrine.php");
|
2006-07-24 01:08:06 +04:00
|
|
|
|
|
|
|
// autoloading objects
|
|
|
|
|
|
|
|
function __autoload($class) {
|
|
|
|
Doctrine::autoload($class);
|
|
|
|
}
|
|
|
|
|
2006-08-30 00:37:55 +04:00
|
|
|
// registering an autoload function, useful when multiple
|
|
|
|
// frameworks are using __autoload()
|
2006-07-24 01:08:06 +04:00
|
|
|
|
2006-08-30 00:37:55 +04:00
|
|
|
spl_autoload_register(array('Doctrine', 'autoload'));
|
2006-07-24 01:08:06 +04:00
|
|
|
?>
|