aboutsummaryrefslogtreecommitdiffstats
path: root/README
diff options
context:
space:
mode:
Diffstat (limited to 'README')
-rw-r--r--README31
1 files changed, 19 insertions, 12 deletions
diff --git a/README b/README
index 552e770..158ca0f 100644
--- a/README
+++ b/README
@@ -17,23 +17,30 @@ site:
A typical index.php using Main would look like this:
<?php
-
+
+ if (true) {
+ error_reporting(E_ALL|E_STRICT);
+ ini_set('display_errors', 'On');
+ }
+
$sysdir = realpath(dirname(__FILE__).'/../system');
- np
+
set_include_path(
- get_include_path() . PATH_SEPARATOR
- . $sysdir . PATH_SEPARATOR
- . "{$sysdir}/lib" . PATH_SEPARATOR
- . "{$sysdir}/conf" . PATH_SEPARATOR
- . "{$sysdir}/classes" . PATH_SEPARATOR
- );
+ get_include_path() . PATH_SEPARATOR
+ . $sysdir . PATH_SEPARATOR
+ . "{$sysdir}/lib" . PATH_SEPARATOR
+ . "{$sysdir}/conf" . PATH_SEPARATOR
+ . "{$sysdir}/classes" . PATH_SEPARATOR
+ );
+
+ require_once 'main/MainApp.php';
+ require_once 'main/MainController.php';
- require_once "main/app.php";
- require_once "main/controller.php";
- $locale = App::locale();
+ $locale = MainApp::locale();
setlocale(LC_ALL, $locale);
session_start();
- App::init();
+
+ MainApp::init();
?>