-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
104 lines (68 loc) · 1.42 KB
/
index.php
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>index</title>
<style type="text/css" media="screen">
body {
background-color: #000;
color: #ccc;
font-family: Consolas, sans-serif;
}
pre, code {
background-color: #222;
font-size: 80%;
color: #ccc;
font-family: Consolas, sans-serif;
padding: 10px 20px;
}
</style>
</head>
<body>
</body>
</html>
<p>Started: <?php echo date('r'); ?></p>
<?php
error_reporting(E_ALL);
ini_set('display_errors', '1');
require_once 'scaffold.php';
$config['zend_path'] = './includes';
$config['database'] = array(
'adapter' => 'Mysqli',
'params' => array(
'host' => 'localhost',
'dbname' => 'eugeniy_scaffold',
'username' => 'eugeniy_scaffold',
'password' => 'fraru9ax',
)
);
$config['current_table'] = 'products';
$config['tables']['products'] = array(
'label' => 'Products',
'primary' => 'id',
'fields' => array(
'id' => array(
'type' => 'hidden'
),
'category_id' => array(
'label' => 'Category',
'type' => 'text'
),
'name' => array(
'label' => 'Name',
'type' => 'text'
),
/*'description' => array(
'label' => 'Description',
'type' => 'text'
),*/
'image' => array(
'label' => 'Image',
'type' => 'text',
'sortable' => false
),
)
);
$test = new Scaffold($config);
//$test->DisplayList();
?>
<p>Completed: <?php echo date('r'); ?></p>