trevormorse/frapi — pull request #1 by muldos (2012-12-17 09:08:40+00:00)
Title: multiple databases and custom configuration parameters

in Action's code you can acces parameters with :

$myserver = Frapi_ParamHelper::getParam('myserver');

And you use databases like that :

$dbSpark = Frapi_Database::getInstance('spark');
$results = $dbSpark->query('SELECT count(*) FROM node');
$this->data['post_count'] = $results->fetchColumn();

$other_db = Frapi_Database::getInstance('frapi');