Home » Support » Help Articles » Batoi OSF Application File Structure

Batoi OSF Application File Structure

Back to Help Articles Home

The OSF reinforces correct development paradigm through different prescriptions and architectural procedures. Having a clear directory and file structure is one of them. This creates separation of business logic from UI design on one hand, and user development from OSF's upgrades and OSF IDE on the other. After installation, the OSF creates the following directory structure:

Directories with respect to application rootDescription of directories and their usage
/loginThis directory contains files structure as the following:
/index.php - Login index file.
/sso.php - Single Sign On configuration file.
/osfThis directory contains all files of the OSF 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 - controler files
/install - installation files
/lib - The scripts and classes provided by the OSF are stored in this directory. Please note that the files in this directory will be updated if you do upgrades of the OSF in 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 /script
/thirdparty - external files
/view - the OSF IDE view parts files
/pubThis 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
/js - Javascript files

The OSF also provides a few key files in the application root that are critical for application running. The following table provides details of each of these files:

The OSF files in the application rootDescription of files and their usage
/changelogIf you enable Lifestream on the OSF IDE, the application will generate log everytime the application is accessed. This log information is stored as text files in this directory.
/index.phpThe cache files created by application is stored in this directory. This includes static files created by application beforehand and served to client-side for improving application performance and to reduce load on server.
/load.osf.phpThis directory meant to store external scripts that are to be added to an application being developed by the OSF.
/load.view.phpThis directory is the storage of uploaded files to the application. You can save uploaded files in /<year>/<month>/<date> form or in any other form as per the convenience of application requirements.

Updated on Aug 20, 2016

The techReview is an online magazine by Batoi and publishes articles on current trends in technologies across different industry verticals and areas of research. The objective of the online magazine to provide an insight into cutting-edge technologies in their evolution from labs to market.

Visit techReview

English - IN (USD)
New Users? Signup.     Existing Users? Login.