php foreach array components model php components view php components

 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
<?php
foreach (array (
'components/model.php',
'components/view.php',
'components/controller.php',
'components/route.php',
'lib/DB.php',
'lib/user.php',
'lib/pagination.php',
'lib/misc.php',
'lib/mail.php',
'lib/valid.php',
'lib/files.php',
'lib/curl.php',
'lib/fenom.php'
) as $file)
{
include $file;
}
//
new route();
?>