User mail on PHP

flashfs 22 Oct, 2019
I do know that it's possible to access user information inside a PHP box with
$user = JFactory::getUser()
And that it's possible to access variables with
$this->get("var_name")
But how do I get the {user} variable inside PHP?
healyhatman 22 Oct, 2019
With the first bit of code you gave. {user:} gives you the exact same data.
flashfs 23 Oct, 2019
So I can't get {user}, inside PHP, like I can get a variable with $this->get()?
healyhatman 23 Oct, 2019

I do know that it's possible to access user information inside a PHP box with

$user = JFactory::getUser()


You answered your own question before you even asked it
flashfs 23 Oct, 2019
Yes, I do understand that.
But JFactory is from Joomla. {user} is from Chronoforms. I just want to know if it is possible to get the {user} (from Chronoforms) object and not the Joomla object. Eventually, Chronoforms could use the Joomla object and add more stuff to make the {user}, I just can't know this if I use the Joomla object directly.
When using Chronoforms, I like to use Chronoforms syntaxes, objects, variables, insted of using Joomla API, PHP native methods etc.
healyhatman 23 Oct, 2019
Answer
\GApp::user()
or
\GApp::user()->get('attribute')
flashfs 23 Oct, 2019
Thank you very much for you patience.
This topic is locked and no more replies can be posted.