You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 :
domain or url or uri : will return the server url, ex: your.fedi.blog.
admin
title
subtitle
licence
defaultPublishing
author
visibility
route : nothing returned.
Content : nothing returned.
$contentType, for example : Article, Media or Static : will return the route of the typed Content, ex : articleof http://your.fedi.blog/article/hello-world.
User: will return the route for User, ex : incredible of http://your.fedi.blog/incredible/david.
path : nothing returned.
Content : nothing returned.
$contentType, for example : Article, Media or Static : 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.