conf models User conf libs Validation Manager conf helpers url languag

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
<?
$conf['models'] = ['User'];
$conf['libs'] = ['Validation', 'Manager'];
$conf['helpers'] = ['url', 'language', 'form'];
foreach($conf as $k => $v)
foreach($v as $k1 => $v1)
switch($v) {
case 'models':
Sao::loadModel($v1);
break;
case 'libs':
Sao::loadLib($v1);
break;
case 'helpers':
Sao::loadHelper($v1);
break;
default:
break;
}