Rev | Line | |
---|
[19] | 1 | <?php |
---|
| 2 | /* |
---|
| 3 | * This file is part of the sfPropel13Plugin package. |
---|
| 4 | * (c) 2007 Joshua May <notjosh@gmail.com> |
---|
| 5 | * |
---|
| 6 | * For the full copyright and license information, please view the LICENSE |
---|
| 7 | * file that was distributed with this source code. |
---|
| 8 | */ |
---|
| 9 | |
---|
| 10 | require_once 'propel/Propel.php'; |
---|
| 11 | |
---|
| 12 | if (sfConfig::get('sf_debug') && sfConfig::get('sf_logging_enabled')) |
---|
| 13 | { |
---|
| 14 | // add logger |
---|
| 15 | Propel::setLogger(sfPropel13LogWrapper::getInstance()); |
---|
| 16 | } |
---|
| 17 | |
---|
| 18 | // propel initialization |
---|
| 19 | Propel::setConfiguration(sfPropel13Database::getConfiguration()); |
---|
| 20 | Propel::initialize(); |
---|
Note: See
TracBrowser
for help on using the repository browser.