controller stub
authorChuck Hagenbuch <chuck@horde.org>
Wed, 14 Jan 2009 05:58:37 +0000 (00:58 -0500)
committerChuck Hagenbuch <chuck@horde.org>
Wed, 14 Jan 2009 05:59:35 +0000 (00:59 -0500)
hippo/app/controllers/ApplicationController.php

index e69de29..51b036c 100644 (file)
@@ -0,0 +1,14 @@
+<?php
+/**
+ * @category Horde
+ * @package  Hippo
+ */
+class Hippo_ApplicationController extends Horde_Controller_Base
+{
+    protected function _initializeApplication()
+    {
+        $GLOBALS['conf']['sql']['adapter'] = $GLOBALS['conf']['sql']['phptype'] == 'mysqli' ? 'mysqli' : 'pdo_' . $GLOBALS['conf']['sql']['phptype'];
+        $this->db = Horde_Db_Adapter::factory($GLOBALS['conf']['sql']);
+    }
+
+}