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?
With the first bit of code you gave. {user:} gives you the exact same data.
So I can't get {user}, inside PHP, like I can get a variable with $this->get()?
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
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.
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.
\GApp::user()or
\GApp::user()->get('attribute')
This topic is locked and no more replies can be posted.
