PHP Classes

File: tests/bootstrap.php

Recommend this page to a friend!
  Classes of Lars Moelleken   Simple Active Record   tests/bootstrap.php   Download  
File: tests/bootstrap.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Simple Active Record
Store and fetch data with Active Records pattern
Author: By
Last change:
Date: 5 years ago
Size: 363 bytes
 

Contents

Class file image Download
<?php

\error_reporting(\E_ALL);
\
ini_set('display_errors', 1);

require_once \
dirname(__DIR__) . '/vendor/autoload.php';

/*
CREATE DATABASE mysql_test;
USE mysql_test;
CREATE TABLE test_page (
  page_id int(16) NOT NULL auto_increment,
  page_template varchar(255),
  page_type varchar(255),
  PRIMARY KEY (page_id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
 */