- 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
Database Connection Configuration
Seme Framework has the ability to open direct connections to database applications such as MySQL or Maria DB through the MySQLi extension. Database connection settings are in app/config/development.php in the $db array, which consists of 7 setting keys.
$db['host']
The hostname or IP Address value of database server connection.
$db['user']
The user value of database server connection.
$db['pass']
The password value of database server connection.
$db['name']
The name of database using by database server connection.
$db['port']
The connection port used by database server connection. Default value is $db['port'] = '3306';
.
$db['charset']
The character set or encoding used for database connections. This setting is very important, especially for multibyte data storage, such as storing Arabic or Japanese script. The contents of this key array can be latin1
or utf8mb4
according to the needs of the character settings.
$db['engine']
The framework database engine. In version 4 only MySQLi
is available, so the default value is $db['engine'] = 'mysqli';
.