aboutsummaryrefslogtreecommitdiffstats
path: root/README
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2011-03-30 16:35:19 +0300
committerFilipp Lepalaan <filipp@mac.com>2011-03-30 16:35:19 +0300
commitf5cb46d5ffa5c46d4b1aa176d9104e8dd67b24ae (patch)
treeda5acaed70c97a00c2efbbc6bd617a840c685864 /README
parent914599c7c2a50c8f1439189214184a2a0f402fc8 (diff)
downloadmain-f5cb46d5ffa5c46d4b1aa176d9104e8dd67b24ae.tar.gz
main-f5cb46d5ffa5c46d4b1aa176d9104e8dd67b24ae.tar.bz2
main-f5cb46d5ffa5c46d4b1aa176d9104e8dd67b24ae.zip
better
Diffstat (limited to 'README')
-rwxr-xr-xREADME59
1 files changed, 0 insertions, 59 deletions
diff --git a/README b/README
deleted file mode 100755
index 158ca0f..0000000
--- a/README
+++ /dev/null
@@ -1,59 +0,0 @@
-MAIN - the simple PHP framework
-
-## Folder structure ##
-
-site:
- public (this is the DocRoot for your site)
- .htaccess (see .htaccess)
- index.php
- system (put all system support files in here)
- lib
- main
- classes (store all your model files in here)
- views (create a folder for each controller and an action.html file for every view)
- data (a good place to store all your application data, logs, etc)
-
-## index.php ##
-
-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');
-
- set_include_path(
- 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';
-
- $locale = MainApp::locale();
- setlocale(LC_ALL, $locale);
- session_start();
-
- MainApp::init();
-
-?>
-
-## .htaccess ##
-
-Main uses and is developed on using Apache httpd's mod_rewrite module. The .htaccess file in your web app's
-public root folder should look something like this:
-
-<IfModule mod_rewrite.c>
- RewriteEngine On
- RewriteCond %{REQUEST_FILENAME} -s [OR]
- RewriteCond %{REQUEST_FILENAME} -l [OR]
- RewriteCond %{REQUEST_FILENAME} -d
- RewriteRule ^.*$ - [NC,L]
- RewriteRule ^.*$ index.php [NC,L]
-</IfModule>