projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77b6ff3
)
controller stub
author
Chuck Hagenbuch
<chuck@horde.org>
Wed, 14 Jan 2009 05:58:37 +0000
(
00:58
-0500)
committer
Chuck Hagenbuch
<chuck@horde.org>
Wed, 14 Jan 2009 05:59:35 +0000
(
00:59
-0500)
hippo/app/controllers/ApplicationController.php
patch
|
blob
|
history
diff --git
a/hippo/app/controllers/ApplicationController.php
b/hippo/app/controllers/ApplicationController.php
index
e69de29
..
51b036c
100644
(file)
--- a/
hippo/app/controllers/ApplicationController.php
+++ b/
hippo/app/controllers/ApplicationController.php
@@
-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']);
+ }
+
+}