removing data/perople.php

master
Matt Huntington 8 years ago
parent 163b7f9688
commit 6bad9e4eea

@ -1,6 +1,6 @@
<?php
header('Content-Type: application/json');
include __DIR__ . '/../data/people.php';
include __DIR__ . '/../models/person.php';
if($_REQUEST['action'] === 'index'){
echo json_encode(People::find());

@ -1,9 +0,0 @@
<?php
include __DIR__ . '/../models/person.php';
$people = array();
$people[] = new Person('joni', 52);
$people[] = new Person('bob', 34);
$people[] = new Person('sally', 21);
$people[] = new Person('matt', 37);
?>
Loading…
Cancel
Save