Skip to content

Commit

Permalink
Updated Shop to use PDO driver
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown authored and haraldpdl committed Mar 14, 2011
1 parent 2d71236 commit 8f91d22
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions osCommerce/OM/Core/Site/Shop/Controller.php
Expand Up @@ -17,6 +17,8 @@
use osCommerce\OM\Core\Database;
use osCommerce\OM\Core\Template;

use osCommerce\OM\Core\DatabasePDO;

class Controller implements \osCommerce\OM\Core\SiteInterface {
protected static $_default_application = 'Index';

Expand All @@ -29,6 +31,8 @@ public static function initialize() {
Registry::set('Cache', new Cache());
Registry::set('Database', Database::initialize());

Registry::set('PDO', DatabasePDO::initialize());

$Qcfg = Registry::get('Database')->query('select configuration_key as cfgKey, configuration_value as cfgValue from :table_configuration');
$Qcfg->setCache('configuration');
$Qcfg->execute();
Expand Down

0 comments on commit 8f91d22

Please sign in to comment.