modX.getLoginUserName

Skip to end of metadata
Go to start of metadata


modX::getLoginUserName

Returns the current user name, for the current or specified context.

Syntax

API Doc: http://api.modxcms.com/modx/modX.html#getLoginUserName

string getLoginUserName ([string $context = ''])

Example

Grab the user's username in the current Context.

$username = $modx->getLoginUserName();

See Also

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.