-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.php
More file actions
67 lines (36 loc) · 921 Bytes
/
index.php
File metadata and controls
67 lines (36 loc) · 921 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?php
$config = array(
'', // host name ('localhost' | '' | IP | name)
'brian', // db user name
'', // db user password
'docs', // db name
5432, // port number (3306/mysql | 5432/pgsql | 443/ssl)
'pgsql' // db type (mysql | pgsql | couchdb | mongodb | sqlite | remote)
);
require 'lib/Structal.php';
require 'lib/Mullet.php';
// Add your models and controllers
class Page extends Model {}
class Pages extends Controller {
static $item;
function init() {
self::$item = '';
Page::bind( 'create', 'addChange' );
}
function html($data) {
echo $data;
}
function render() {
header('HTTP/1.1 200 OK');
header('Content-Type: application/json');
self::html(self::$item);
return self;
}
function addOne( $task ) {
}
function addAll() {
}
function renderCount() {
}
}
return new Pages;