-
-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy pathModel.php
More file actions
37 lines (33 loc) · 576 Bytes
/
Model.php
File metadata and controls
37 lines (33 loc) · 576 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
/**
*
* This file is part of mvc-rest-api for PHP.
*
*/
namespace MVC;
/**
* Class Model, a port of MVC
*
* @author Mohammad Rahmani <rto1680@gmail.com>
*
* @package MVC
*/
class Model {
/**
* @var
*/
public $db;
/**
* Construct
*/
public function __construct() {
$this->db = new \Database\DatabaseAdapter(
DATABASE['Driver'],
DATABASE['Host'],
DATABASE['User'],
DATABASE['Pass'],
DATABASE['Name'],
DATABASE['Port']
);
}
}