This commit is contained in:
parent
594e793285
commit
e3df7b6bd0
@ -1,5 +1,4 @@
|
||||
<?php
|
||||
Doctrine::autoload('Doctrine_Session');
|
||||
/**
|
||||
* standard session, the parent of pgsql, mysql and sqlite
|
||||
*/
|
||||
|
@ -1,5 +1,4 @@
|
||||
<?php
|
||||
Doctrine::autoload('Doctrine_Session');
|
||||
/**
|
||||
* firebird driver
|
||||
*/
|
||||
|
@ -1,5 +1,4 @@
|
||||
<?php
|
||||
Doctrine::autoload('Doctrine_Session');
|
||||
/**
|
||||
* informix database driver
|
||||
*/
|
||||
|
@ -1,5 +1,4 @@
|
||||
<?php
|
||||
Doctrine::autoload('Doctrine_Session');
|
||||
/**
|
||||
* mssql driver
|
||||
*/
|
||||
|
@ -1,5 +1,4 @@
|
||||
<?php
|
||||
Doctrine::autoload('Doctrine_Session');
|
||||
/**
|
||||
* oracle driver
|
||||
*/
|
||||
|
9
manual/codes/Getting started - Compile.php
Normal file
9
manual/codes/Getting started - Compile.php
Normal file
@ -0,0 +1,9 @@
|
||||
Doctrine is quite big framework and usually dozens of files are being included on each request.
|
||||
This brings a lot of overhead. In fact these file operations are as time consuming as sending multiple queries to database server.
|
||||
The clean separation of class per file works well in developing environment, however when project
|
||||
goes commercial distribution the speed overcomes the clean separation of class per file -convention.
|
||||
|
||||
Doctrine offers method called compile() to solve this issue. The compile method makes a single file of most used
|
||||
Doctrine components which can then be included on top of your script. By default the file is created into Doctrine root by the name
|
||||
Doctrine.compiled.php.
|
||||
|
@ -1,5 +1,5 @@
|
||||
<?php
|
||||
require_once("../Doctrine.php");
|
||||
require_once("../Doctrine.compiled.php");
|
||||
|
||||
//Doctrine::loadAll();
|
||||
function __autoload($class) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user