There is a class:
class list_control { private $lang; private $dbc = $dbc; function __construct($lang) { $this->lang = $lang; loadModule('mysql_PDO'); } public function start() { $db = new mysql_PDO($this->dbc['host'], $this->dbc['user'], $this->dbc['password'], $this->dbc['dbase']); $db->connect(); $db->query('SELECT * FROM slug'); load('list', $this->lang); $db = null; } } $ dbc - Array with connection data in DB. Located in the config.php, which is connected to index.php, and in this index.php there is a file with this class. It is necessary to do so as not to violate the pattern.