diff options
author | Filipp Lepalaan <filipp@mac.com> | 2010-05-21 21:42:39 +0300 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2010-05-21 21:42:39 +0300 |
commit | 8ec4e59bb0ddac89f36dcb48ee3f14c737e6e80f (patch) | |
tree | 951df57b4c78faaded13a50ad951edcd8df0e7dc /README | |
parent | a78ac287043f57ea81e1175ffbe2476956e04752 (diff) | |
download | main-8ec4e59bb0ddac89f36dcb48ee3f14c737e6e80f.tar.gz main-8ec4e59bb0ddac89f36dcb48ee3f14c737e6e80f.tar.bz2 main-8ec4e59bb0ddac89f36dcb48ee3f14c737e6e80f.zip |
Fixes
Diffstat (limited to 'README')
-rw-r--r-- | README | 31 |
1 files changed, 19 insertions, 12 deletions
@@ -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(); ?> |