Batoi Framework Application File Structure
The Batoi Framework reinforces the correct development paradigm through different prescriptions and architectural procedures. Having a clear directory and file structure is one of them. This creates a separation of business logic from UI design on one hand, and user development from Batoi Framework's upgrades and Batoi Framework IDE on the other. After installation, the Batoi Framework creates the following directory structure:
|Directories with respect to the application root||Description of directories and their usage|
|This directory contains files structure as the following:|
/index.php - Login index file.
/sso.php - Single Sign-On configuration file.
|This directory contains all files of the Batoi Framework IDE. You can even delete this directory after completing development, and that will not affect the running of your application in any way. Different types of files are stored in their own subdirectories like the following:|
/data - data files
/ide - controller files
/install - installation files
/lib - The scripts and classes provided by the Batoi Framework are stored in this directory. Please note that the files in this directory will be updated if you do upgrades of the Batoi Framework in the future with newer versions.
/model - All files of Model or business logic are stored here. The Model classes or application classes are stored in a subdirectory
/class, and independent scripts are stored in
/thirdparty - external files
/view - the Batoi Framework IDE view parts files
|This directory contains all folders and files related to CSS, fonts, images, and js files. Different types of files are stored in their own subdirectories like the following:|
/css - CSS files
/fonts - Font files
/images - Image files
The Batoi Framework also provides a few key files in the application root that are critical for the application running. The following table provides details of each of these files:
|The Batoi Framework files in the application root||Description of files and their usage|
|If you enable Lifestream on the Batoi Framework IDE, the application will generate a log every time the application is accessed. This log information is stored as text files in this directory.|
|The cache files created by the application are stored in this directory. This includes static files created by application beforehand and served to the client-side for improving application performance and reducing the load on the server.|
|This directory meant to store external scripts that are to be added to an application being developed by the Batoi Framework.|
|This directory is the storage of uploaded files to the application. You can save uploaded files in |
/// form or in any other form as per the convenience of application requirements.