-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
34 lines (27 loc) · 1.19 KB
/
index.php
File metadata and controls
34 lines (27 loc) · 1.19 KB
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
<?php /**
* @name KernelWeb & CMS: Index
* @author ArrayZone
* @package KernelCMS
* @version 1.0
* @copyright ArrayZone 2014
* @license AZPL or later; see License.txt or http://arrayzone.com/license
* @category core
*/
// Force show all errors (comment this when you finish the development)
error_reporting(E_ALL);
// Starting Kernel Web, this is the critical point of your app
// If you change this directory is needed to change in "cron.php" and everypage that you create
// If will use this in a lot of pages, you can create a new file like "loadKernel.php" with the include inside
include '../KernelWeb/main.php';
// To test load time
// If PHP version is lower than 5.4 it would start count time now, else it get time since petition was send
// If you like disable this, comment this line and the last line "ServerStatus::calcTime();"
ServerStatus::calcTime();
// Execute Kernel Loader (with default controller and default action)
// it will load all pages
// You can specify what thing will be loaded if is not specified (for example, the default module)
kw::start('frontend', 'index', 'index');
// End test time
ServerStatus::calcTime();
// This is all your index.php file!!! What do you expect?
?>