-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtest.php
More file actions
23 lines (16 loc) · 765 Bytes
/
test.php
File metadata and controls
23 lines (16 loc) · 765 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
include'vendor/autoload.php';
$app = new Warehouse();
//$app->initLayout('Centered');
//$app->db = new \atk4\data\Persistence_SQL('mysql:host=127.0.0.1;dbname=warehouse;charset=utf8', 'root', 'root');
$f = $app->layout->add(new ui\LineForm());
$f->setModel(new Line($app->db));
/*
$cr->addColumn(new \atk4\ui\TableColumn\Template('<a href="article.php?article_id={$id}"><i class="stack overflow icon"></i> {$name}: {$stock} in stock</a>'));
$cr->fieldsGrid = ['category', 'brand', 'name'];
$cr->setModel(new Article($app->db));
$cr->menu->addItem(new ui\Manager(['Brands', 'icon'=>'tag']))
->setModel(new Brand($app->db));
$cr->menu->addItem(new ui\Manager(['Categories', 'icon'=>'folder']))
->setModel(new Category($app->db));
*/