Empty PHP Fatfree-framework MVC website code
- Copy
app/config/config.ini.example
toconfig.ini
- Edit
app/config/config.ini
and add anything extra fromdefault.ini
for overrides - In the top level folder
run composer install
Setup empty website folders as follows:
mkdir -p tmp/cache tmp/sessions tmp/uploads tmp/logs data
sudo chown -fR www-data:www-data tmp data
sudo chmod -fR 777 tmp data
www
- website and public doc root (akapublic_html
orhtdocs
etc)www/index.php
- start website application hereapp/lib/
- all library files/classesapp/lib/bcosca/fatfree
- fatfree framework lives heretmp/cache
tmp/sessions
tmp/uploads
- temporary filestmp/logs
- application logfilesdata
- website data storageapp
- the website application lives outside the webroot for securitywww/index.php
is the default file used by.htaccess
for routingapp/doc
- application documentation (markdown files)app/config
- application configuration filesapp/config/vhost
- application virtual host configuration files (apache and nginx supported)app/app.php
- start fatfree by including this file and running FFMVC\App\Run();app/cli.php
- command-line specific bootstrap instructionsapp/lib/FFMVC/App
- Base Application Classesapp/lib/FFMVC/Models
- MVC Modelsapp/lib/FFMVC/Controllers
- MVC Controllersapp/lib/FFMVC/Helpers
- Useful static helper functions and utility libraries specific to the projectapp/lib/FFMVC/CLI
- Command line script controller libapp/templates/www/error/
- these files are standard php includes, not f3 templates, used by the error handler functionapp/templates/www/error/debug.phtml
- debug error page (if DEBUG=3)app/templates/www/error/404.phtml
- 'friendly' file not found pageapp/templates/www/error/error.phtml
- 'friendly' error page