emvc

Application : Directory Structure

emvc favors convention over configuration. One of these conventions is a well defined directory structure, making it easy to locate files in an application.

app/controllers
Contains the controllers that handle requests sent to an application.
app/models
Contains the models for accessing and storing data in a database.
app/views
Contains the views and layouts that are rendered by an application.
config
Configuration for the application, including routes, databases, etc.
config/environments
Environment-specific configuration. For example, development and production are two environments that require different settings.
config/initializers
Initialization code that is executed before the applications starts.
public
Static files and compiled assets served by the application.