Welcome to the NanoMVC documentation overview. This section explains the basic structure of the framework, what each folder does, and where to place your files when building an application.
When you download NanoMVC, the package includes the following directory layout:
/htdocs/
index.php
/nanomvc/
/myapp/
/myfiles/
/sysfiles/
This folder contains the public-facing entry point of your application. The index.php file located here should be placed inside your web server’s document root.
This is the core NanoMVC folder. For security reasons, it’s recommended to place this outside of the document root. It contains your application code, plugins, and system files.
This directory holds your actual application: controllers, models, views, and plugins. Most of your development will take place here.
This folder is used in shared installations. If you run multiple NanoMVC-based projects, you can store common plugins here to share across them. Just move your plugin files from /myapp/plugins/ into /myfiles/plugins/.
This directory contains the NanoMVC core system files. You typically won’t need to touch these. When updating NanoMVC to a newer version, only this directory should be replaced.