forked from jonseg/crud-admin-generator
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconfig.php.dist
75 lines (65 loc) · 2.05 KB
/
config.php.dist
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
<?php
$app->register(new Silex\Provider\DoctrineServiceProvider(), array(
'dbs.options' => array(
'db' => array(
'driver' => 'pdo_mysql',
'dbname' => 'DATABASE_NAME',
'host' => '127.0.0.1',
'user' => 'DATABASE_USER',
'password' => 'DATABASE_PASS',
'charset' => 'utf8',
),
)
));
$app['asset_path'] = '/resources';
$app['application_name'] = 'Admin Generator';
// determine image path for image fields in database
// I.E field value would be image.jpg, result would be <img src="http://somepath/dist/images/image.jpg" />
$app['image_fields'] = array(
//'table_name.field_name' => 'http://somepath/dist/images/',
);
// If the automapping of foreign key for drop down list does not the job, you can
// force a mapping here
$app['foreign_key_mapping'] = array(
//'main_table_name.main_table_field' => 'foreign_table_name.foreign_table_field'
);
// Allow user to add additional menu links
$app['menu_links'] = array(
//['name' => 'MENU NAME', 'url' => 'http://menu-url.com', 'fa-icon' => ''],
);
// Allow user to transform column with video url to player
$app['video_fields'] = array(
//'your_table_name.your_column' => '',
);
// add introduction text on list page
$app['table_intro'] = array(
//'your_table_name' => "some text"
);
$app['debug'] = true;
// array of REGEX column name to display for foreigner key insted of ID
// default used :'name','title','e?mail','username'
$app['usr_search_names_foreigner_key'] = array();
$app['call_to_action'] = array(
/*
'synonyms' => array(
0 => array(
'btn_name' => 'btn name 1',
'method' => 'put',
'url' => 'http://some-url/1.0/route/{id}',
'data'=> json_encode(array(
'param' => value
)),
'callback' => 'refresh'
),
1 => array(
'btn_name' => 'btn name 2',
'method' => 'post',
'url' => 'http://some-url/1.0/route/{id}',
'data'=> json_encode(array(
'param' => value
)),
'callback' => 'refresh'
)
)
*/
);