Skip to content

Instantly share code, notes, and snippets.

@WebSofter
Created September 10, 2017 12:21
Show Gist options
  • Save WebSofter/8d2fa55f92435423f3c52c1f0e7e0c6b to your computer and use it in GitHub Desktop.
Save WebSofter/8d2fa55f92435423f3c52c1f0e7e0c6b to your computer and use it in GitHub Desktop.
Joomla:PHP:User:Получение логина пользователя #php #joomla
<form action="#">
<input type="hidden" name="Username" id="mod-chat-username" value="<?php echo JFactory::getUser()->get('username'); ?>">
<input class="chat-new-message" name="new-message" id="mod-chat-message" type="text" placeholder="Напишите сообщение" />
<button class="chat-send-message" id="mod-chat-btn" type="button"></button>
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment