Commit 50defa4f authored by meus's avatar meus

Changed some small text on the Requirement page and the Installation page.

parent 4652ae5c
<?php
require_once("path-to-doctrine/Doctrine.php");
// autoloading objects
function __autoload($class) {
Doctrine::autoload($class);
}
// registering an autoload function, useful when multiple
// frameworks are using __autoload()
spl_autoload_register(array('Doctrine', 'autoload'));
?>
In order to use Doctrine in your project it must first be included.
<code type="php">
require_once("path-to-doctrine/lib/Doctrine.php");
</code>
Doctrine support [http://www.php.net/autoload Autoloading] for including files so that you do not have to include anything more then the base file. There are two different strategies that can be used to do this:
If you do use the **__autoload** function for your own logic you can use it.
<code type="php">
function __autoload($class) {
Doctrine::autoload($class);
}
</code>
If your project uses autoload and/or you have other libraries that use it you could use [http://www.php.net/manual/en/function.spl-autoload-register.php spl_autoload_register] to register more then one autoloading function.
<code type="php">
spl_autoload_register(array('Doctrine', 'autoload'));
</code>
The installation of doctrine is very easy. Just get the latest revision of Doctrine from The installation of doctrine is very easy. Just get the latest revision of Doctrine from http://doctrine.pengus.net/svn/trunk.
http://doctrine.pengus.net/svn/trunk.
<br \><br \>
You need a SVN(Subversion) client for downloading Doctrine. You need a SVN(Subversion) client for downloading Doctrine.
To check out Doctrine using the **svn** command line tool in the current directory use:
<code type="bash">
svn co http://doctrine.pengus.net/svn/trunk .
</code>
Do check out using a GUI based tool like [http://tortoisesvn.tigris.org/ TortoiseSVN] simply use the http://doctrine.pengus.net/svn/trunk in the the path field. No username or password is neccesary.
Doctrine requires PHP >= 5.1. it doesn't require any external libraries. Doctrine requires PHP >= 5.1. it doesn't require any external libraries.
For database abstraction Doctrine uses PDO which is bundled with php by default. Doctrine also requires a little For database abstraction Doctrine uses PDO which is bundled with php by default. Doctrine also requires a little adodb-hack for table creation, which comes with doctrine.
adodb-hack for table creation, which comes with doctrine as of beta4.
Getting started Getting started
Requirements Requirements
Installation Installation
Include and autoload
Compiling Compiling
Starting new project Starting new project
Working with existing databases Working with existing databases
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment