Menu

Application Structure Log in to Edit

LongStone

Application Structure

Core Directories

JCORE/[APIS]

JCORE/[CONFIG]

JCORE/[CORE]

JCORE/[PACKAGES]

JCORE/[PLUGINS]

JCORE/[TEMPLATES]




The Layout

the expected install is something along the lines of
/var/www/http/* - your "servable" directory root
/var/www/JCORE - your install directory

But these can be any directory your application server has r/w access to. The subdirectories under JCORE are mapped as constants in the file JCORE/APIS/[api_name]/config.php

    define ("JCORE_BASE_DIR", "/var/www/JCORE/CORE/");
    define ("JCORE_CONFIG_DIR", "/var/www/JCORE/CONFIG/");
    define ("JCORE_PACKAGES_DIR", "/var/www/JCORE/PACKAGES/");
    define ("JCORE_TEMPLATES_DIR", "/var/www/JCORE/TEMPLATES/");
    define ("JCORE_LOG_DIR", "/var/log/httpd/"); 
    define ("JCORE_PLUGINS_DIR", "/var/www/JCORE/PLUGINS/");
    define ("JCORE_PACKAGES_DIR", "/var/www/JCORE/PACKAGES/");




JCORE/[APIS]

contains example API's (SOA, ReST, basic HTTP) as well as the "default_admin_api"
if you want to expose this you can create a symlink under the http directory

JCORE/[CONFIG]

JCORE uses *.ini files for almost all configuration settings. basic settings are are in jcore.ini
the settings for CACHE_SOURCE, DATA and LOG are discussed in those subsections
pay particular attention to connections with MySQL when using multiple data sources

JCORE/[CORE]

the foundation. Authentication/Authorization, Cache (opcode and data), Exception, Localization, LIB (3rd party tools), Load (bootstrap and autoload ) , Package utilities, Templater and Transport layer

JCORE/[PACKAGES]

default directory for packages and some example packages

JCORE/[PLUGINS]

default directory for packages and some example packages

JCORE/[TEMPLATES]

example templates for various file types CSS, HTML, Javascript, PHP and XML
[ERROR]


Related

Wiki: APIS
Wiki: CONFIG
Wiki: CORE
Wiki: ERROR
Wiki: Home
Wiki: PLUGINS

Discussion

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.