URL_CLEAN
URL_CLEAN
A helper to create urls.
configure(array|string $what) : self
Read configuration from file or array, if a file, first check in ANAX_APP_PATH/config and then in ANAX_INSTALL_PATH/config.
| array|string | $what | is an array with key/value config options or a file to be included which returns such an array. |
when argument if not a file nor an array.
for chaining.
getConfig(string $key, string $default = null) : mixed
Helper function for reading values from the configuration and appy default values where configuration item is missing.
| string | $key | matching a key in the config array. |
| string | $default | value returned when config item is not found. |
or null if key does not exists.
create(string $uri = null, string $baseuri = null) : string
Create an url and prepending the baseUrl.
| string | $uri | part of uri to use when creating an url. "" or null means baseurl to current frontcontroller. |
| string | $baseuri | optional base to prepend uri. |
as resulting url.
createRelative(string $uri = null) : string
Create an url and prepend the baseUrl to the directory of the frontcontroller.
| string | $uri | part of uri to use when creating an url. "" or null means baseurl to directory of the current frontcontroller. |
as resulting url.