Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace Template;
- use \PDO;
- header('Content-Type: application/javascript;');
- require_once 'template.php';
- require_once 'model.php';
- $conn = new Connection();
- $conn->host = "localhost:33306";
- $conn->user = "root";
- $conn->pass = "root";
- $conn->db = "test"
- $conn->options = [
- PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_OBJ
- ];
- $template = new Template($conn);
- $model = new Model($template->db);
- $get = $model->get(2);
- print_r($get);
Add Comment
Please, Sign In to add comment