
EDIT///
Zrobiłem rejestr systemowy frameworka. Zawierać będzie ten głupi DB object

<?php public function __construct() { $this -> application = Application::GetInstance(); $this -> tpl = $this -> application -> tpl; $this -> some_class = $this -> application -> some_class; } ?>
<?php class Opt_Model_MySQL { public function __construct() { ( 'host' => 'localhost', 'user' => '', 'password' => '', 'database' => '' ); $this->_oDatabase = new Rapide_Database_MySQL($aParameters, true); } public function getDB() { return $this->_oDatabase; } } ?>