- 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
URL or Uniform Resource Locator settings are in the Seme Framework because they relate to how the Seme Framework will be opened or run.
Base URL
Base URL settings are needed to determine the base URL of a Web built on Seme Framework. This Base URL will be a reference for each URL that will be placed in the resulting response.
This base URL setting is in app/config/development.php
in the $site
variable section.
Here is some examples for $site
value:
$site = "http://localhost/seme-framework/";
$site = "https://www.example.com/";
$site = "http://localhost:8080/";
$site = "http://".$_SERVER['HTTP_HOST']."/seme_framework/";
Special URL for Admin
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 = "manager";
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/";