Заменяем creole на pdo, убрал зависимость от h2o

This commit is contained in:
Фёдор Подлеснов 2016-06-30 15:07:38 +03:00
parent 3c2e614d87
commit 1223d54573
99 changed files with 2 additions and 16962 deletions

View file

@ -17,13 +17,13 @@ class Controller_Front extends Controller
public function __construct(Settings $_registry, $_shortcut)
{
require_once 'creole/Creole.php';
require_once 'core/database_pdo.php';
parent::__construct();
$registry = $_registry;
$this->_registry = $_registry;
$this->_shortcut = $_shortcut;
$this->db = Creole::getConnection($registry->readKey(array('system', 'dsn')));
$this->db = Database::getConnection($registry->readKey(array('system', 'dsn')));
$this->installer = new Installer($_registry);
}