Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require_once '/home/sandra/public_html/DbList/dibi/dibi.php';
- /**
- * trida pro pripojeni k databazi
- */
- class DbModel {
- /**
- * vrati dibiconnection
- * @return DibiConnection
- */
- public function dibiGetConnection() {
- $options = array(
- 'driver' => 'mysql',
- 'host' => 'localhost',
- 'username' => 'jhtp6',
- 'password' => 'jhtp6',
- 'database' => 'dblist',
- );
- $connection = new DibiConnection($options);
- return $connection;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement