-
Notifications
You must be signed in to change notification settings - Fork 0
02. Config
All properties in the config:
- RewriteRules
- ErrorViewLocation
- DefaultTitle
- DefaultProfilePic
- BaseUrl
- DataBaseName
- DataBaseUser
- DataBasePassword
- Debug
- CustomErrors
- Env
- DetermineLanguage
This property allows you to change the way controllers and actions are selected, and gives the ability to pass GET variables to actions.
The values of this array have to be of the structure controller/action/GET1/GET2 with as many GETs as needed or none at all.
The keys can be any properly formed URL.
By putting words between [] you can pass values from the keys to the values.
GETs will be passed to the action as an array where the keys are the [ids] they got from the RewriteRules.
The location of the view used by the custom error handeler, if this is not a correct path the custom errors will not work.
The value is a folder/file in the views folder, without .php.
The default value of the <title> tag in the layout, this is just the default and can be overwritten in the controller.
The profile picture that will be used if the user doesn't upload one. Used by the default user system.
The URL that points to index.php, for example: http://localhost/example/ or http://example.com/.
The name of the default database.
The name of the default database user.
The password of the default database user.
Toggles availability of development tools.
Toggles the use of custom error handeling.
The Env property defines easily togglable collections of other properties.
By default there are two collections Live and Dev, but the Env property simply defines which collection is written into config, so you can add as many as needed.
Has to return the name of a folder in the base/i18n folder.
This function is used to determine the current language. The default function uses a cookie, but you can also use a session or the useragent.