Changed some small text on the Requirement page and the Installation page.
This commit is contained in:
parent
4652ae5c50
commit
50defa4fbf
@ -1,14 +0,0 @@
|
||||
<?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'));
|
||||
?>
|
@ -0,0 +1,21 @@
|
||||
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>
|
@ -1,4 +1,10 @@
|
||||
The installation of doctrine is very easy. Just get the latest revision of Doctrine from
|
||||
http://doctrine.pengus.net/svn/trunk.
|
||||
<br \><br \>
|
||||
The installation of doctrine is very easy. Just get the latest revision of Doctrine from http://doctrine.pengus.net/svn/trunk.
|
||||
|
||||
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.
|
||||
|
||||
|
@ -1,3 +1,2 @@
|
||||
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
|
||||
adodb-hack for table creation, which comes with doctrine as of beta4.
|
||||
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.
|
||||
|
@ -1,6 +1,7 @@
|
||||
Getting started
|
||||
Requirements
|
||||
Installation
|
||||
Include and autoload
|
||||
Compiling
|
||||
Starting new project
|
||||
Working with existing databases
|
||||
|
Loading…
Reference in New Issue
Block a user