aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2011-05-12 09:34:48 +0300
committerFilipp Lepalaan <filipp@mac.com>2011-05-12 09:34:48 +0300
commit84ff858544f82c72cb104e0e6e9a86291b115d74 (patch)
tree0f669b20063a9c9cfa20b1ff37a3402abfad8815
parent6441053a55c17832f389f4907f047d9c028ace6f (diff)
downloadmain-84ff858544f82c72cb104e0e6e9a86291b115d74.tar.gz
main-84ff858544f82c72cb104e0e6e9a86291b115d74.tar.bz2
main-84ff858544f82c72cb104e0e6e9a86291b115d74.zip
cleanup
-rw-r--r--README.md36
1 files changed, 18 insertions, 18 deletions
diff --git a/README.md b/README.md
index 094084e..b819b41 100644
--- a/README.md
+++ b/README.md
@@ -2,16 +2,16 @@ 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)
+ site:
+ public (the DocRoot of 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 ##
@@ -50,11 +50,11 @@ A typical index.php using Main would look like this:
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>
+ <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>