Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
9d5ec7ed
Commit
9d5ec7ed
authored
Jun 01, 2007
by
pookey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
grammer changes
parent
b0a6adc1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
16 deletions
+18
-16
intro.xml
manual/docbook/intro.xml
+18
-16
No files found.
manual/docbook/intro.xml
View file @
9d5ec7ed
...
...
@@ -271,9 +271,9 @@
for whatever reason, see below for details on downloading a snapshot.
</para>
<screen>
<prompt>
bash $
</prompt><command>
mkdir
<replaceable>
doctrine
</replaceable></command>
<prompt>
bash $
</prompt><command>
cd
<replacable>
doctrine
</replac
able></command>
<prompt>
bash $
</prompt><command>
svn checkout http://doctrine.pengus.net/svn/trunk .
</command>
<prompt>
bash $
</prompt><command>
mkdir
<replaceable>
doctrine
</replaceable></command>
<prompt>
bash $
</prompt><command>
cd
<replaceable>
doctrine
</replace
able></command>
<prompt>
bash $
</prompt><command>
svn checkout http://doctrine.pengus.net/svn/trunk .
</command>
</screen>
<para>
Daily snapshots can be found at
...
...
@@ -286,22 +286,24 @@
<sect1
id=
"include-and-autoload"
>
<title>
Include and autoload
</title>
<para>
In order to use Doctrine in your project it must first be included.
In order to use Doctrine in your project, you must first include the main
library file called 'Doctrine.php'.
</para>
<programlisting
role=
"php"
>
<![CDATA[
<?php
require_once('path-to-doctrine/lib/Doctrine.php');
?>
]]>
</programlisting>
<para>
Doctrine support
<ulink
Doctrine support
s
<ulink
url=
"http://www.php.net/autoload"
>
Autoloading
</ulink>
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:
files so that you don't have to include anything more then the base
file. There are two different strategies that can be used to do this,
as shown below.
</para>
<para>
If you do use the
<emphasis>
__autoload
</emphasis>
function for your own
logic you can use it.
You can use the
<emphasis>
__autoload
</emphasis>
function to call the
'Doctrine::autoload($class)' method, for example:
</para>
<programlisting
role=
"php"
>
<![CDATA[
<?php
...
...
@@ -311,10 +313,10 @@
?>
]]>
</programlisting>
<para>
If your project
uses autoload and/or you have other libraries that use
it you could
use
<ulink
If your project
already uses autoload or you have other libraries
that use it, you can
use
<ulink
url=
"http://www.php.net/manual/en/function.spl-autoload-register.php"
>
spl_autoload_register
</ulink>
to register m
ore then one autoloading function
.
to register m
ultiple autoloading functions
.
</para>
<programlisting
role=
"php"
>
<![CDATA[
...
...
@@ -326,13 +328,13 @@
<sect1
id=
"compiling"
>
<title>
Compiling
</title>
<para>
Compiling is a method for making a single file of most used doctrine
runtime components
including the
compiled file instead of multiple files
Compiling is a method for making a single file of
the
most used doctrine
runtime components
. Including this
compiled file instead of multiple files
(in worst cases dozens of files) can improve performance by an order of
magnitude.
</para>
<para>
In cases where this might fail, a Doctrine_Exception is throw detailing
In cases where this might fail, a Doctrine_Exception is throw
n
detailing
the error.
</para>
<programlisting
role=
"php"
>
<![CDATA[
...
...
@@ -355,7 +357,7 @@
</para>
<para>
Doctrine auto-creates database tables and always adds a primary key
column named 'id' to tables that do
es
n't have any primary keys
column named 'id' to tables that don't have any primary keys
specified. The only thing you need to do to create database tables is
defining a class which extends Doctrine_Record and setting a
setTableDefinition method with hasColumn() method calls.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment