Documentation

Folders


Folders

Rain Framework is designed to work in any environment, like shared hosting, VPS, and for any situation, because you can easily configure your folders structure






You can configure the Rain Framework folders structure by updating your configuration in the configuration file website/config/directory.php

Constant Default Description
SCRIPT_NAME index.php or ajax.php take the name of the called script
BASE_DIR root directory take the root directory of your project
CONSTANTS_DIR Rain/const/ constants directory
LANGUAGE_DIR Rain/language/ language directory
LIBRARY_DIR Rain/library/ library directory
CACHE_DIR website/cache/ cache directory
CONFIG_DIR website/config/ config directory, each website has its own
LOG_DIR website/log/ log directory
UPLOADS_DIR website/uploads/ upload directory
CSS_DIR website/css/ stylesheet directory
JAVASCRIPT_DIR website/js/ javascript directory
APPLICATION_DIR application/
you develop your application
CONTROLLERS_DIR application/controllers/
controller directory
MODELS_DIR application/models/
models directory
VIEWS_DIR application/views/
views directory
APPLICATION_LIBRARY_DIR application/library/ Library specific for the application goes here