Created
June 13, 2010 15:53
-
-
Save kirkegaard/436766 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resources.db.adapter = "PDO_MYSQL" | |
resources.db.params.dbname = "zfpress_production" | |
resources.db.params.username = "root" | |
resources.db.params.password = "root" | |
resources.db.params.prefix = "zfpress_" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class ZFPress_Model_DbTable_Abstract | |
extends Zend_Db_Table_Abstract | |
{ | |
protected $_prefix = ''; | |
public function init() | |
{ | |
$options = $this->getAdapter()->getConfig(); | |
if(isset($options['prefix'])) { | |
$this->_name = $options['prefix'] . $this->_name; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment