Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.55 KB | None | 0 0
  1. <?php
  2.  
  3. require_once '/home/sandra/public_html/DbList/dibi/dibi.php';
  4.  
  5. /**
  6.  * trida pro pripojeni k databazi
  7.  */
  8. class DbModel {
  9.  
  10.     /**
  11.      * vrati dibiconnection
  12.      * @return DibiConnection
  13.      */
  14.     public function dibiGetConnection() {
  15.         $options = array(
  16.             'driver' => 'mysql',
  17.             'host' => 'localhost',
  18.             'username' => 'jhtp6',
  19.             'password' => 'jhtp6',
  20.             'database' => 'dblist',
  21.         );
  22.         $connection = new DibiConnection($options);
  23.         return $connection;
  24.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement