-
Notifications
You must be signed in to change notification settings - Fork 1
Server::get($var)
David Libeau edited this page May 23, 2018
·
2 revisions
The Server::get() function aim to get global server variable.
The $var passed in the Server::get() function can be a single string or a path like/that/thing :
-
domainorurloruri: will return the server url, ex:your.fedi.blog. admintitlesubtitlelicence-
defaultPublishingauthorvisibility
-
route: nothing returned.-
Content: nothing returned.-
$contentType, for example :
Article,MediaorStatic: will return the route of the typed Content, ex :articleofhttp://your.fedi.blog/article/hello-world.
-
$contentType, for example :
-
User: will return the route for User, ex :incredibleofhttp://your.fedi.blog/incredible/david.
-
-
path: nothing returned.-
Content: nothing returned.-
$contentType, for example :
Article,MediaorStatic: nothing returned.-
data: will return the databse path for typed Content. -
content: will return the path where the media are store or .txt content for Article Content, for example.
-
-
$contentType, for example :
-
User: will return the databse path for User.
-