- Seme Framework
- version 4.0.3
- Requirements
- Download & Install
- Configuration
- Tutorials
- URI Routing
- Constants
- Global Variables
- Model
- View
- Controller
- cdn_url
- config
- constructor
- getAdditional
- getAdditionalBefore
- getAdditionalAfter
- getAuthor
- getCanonical
- getContentLanguage
- getDescription
- getIcon
- getJsContent
- getJsFooter
- getJsReady
- getKey
- getKeyword
- getLang
- getRobots
- getShortcutIcon
- getThemeElement
- getTitle
- input
- lib
- load
- loadCss
- loadLayout
- putThemeContent
- putJsContent
- putJsFooter
- putJsReady
- render
- resetThemeContent
- session
- setAuthor
- setCanonical
- setContentLanguage
- setDescription
- setIcon
- setKey
- setKeyword
- setLang
- setShortcutIcon
- setTheme
- setTitle
- Library
- CLI (command line interface)
- Core
- Issue
- Deployment
URL Configuration
Seme Framework has some configuration for Uniform Resource Locator (URL).
Base URL
Base URL is required for avoiding mismatch target to a page, image, etc.
The base url configuration existed on $site
variable.
Same as version 3.x.x the value of must be ended by trailing slash.
Example:
$site = "http://localhost/seme-framework/";
$site = "https://www.example.com/";
$site = "http://localhost:8080/";
Admin Secret URL
The special base url configuration for admin that point to app/controller/admin/*
.
The default value is $admin_secret_url = 'admin';
.
This is will relative to $site
value.
Example:
$admin_secret_url = "admin";
$admin_secret_url = "boss";
$admin_secret_url = "manajer";
URL Routing Method
The url routing method existed on $method
, same as version 3.x.x the value consists of REQUEST_URI
,PATH_INFO
, and ORIG_PATH_INFO
.
REQUEST_URI
The REQUEST_URI value suitable for NGINX, Apache on deployment server, LiteSpeed, etc.
PATH_INFO
The PATH_INFO value suitable for XAMPP development environtment.
ORIG_PATH_INFO
The ORIG_PATH_INFO value is for another server configuration.
CDN URL
The special base url for Content Delivery Network url.
The default value is $cdn_url = '';
Example:
$cdn_url = "http://cdn.cenah.co.id/seme-framework/";