How to call array values in a custom code

mapme 21 Sep, 2015
Hi,

I am starting to use custom code sections to carry out specific tasks.
So it is quite straightforward to pull data from the basic results, such as:
{$form->data['Email']}
if I want to get the results from the data that was entered into the Email field in the form.

However I am now trying to work with data that is stored in an array (from the debugger) after I use the Joomla registration action. So the array is as follows:
[_PLUGINS_] => Array
        (
            [joomla_registration] => Array
                (
                    [*isRoot] => 
                    [id] => 1234567
                    [Email] => abcdef@email.com


So how can I get the user ID in a later custom code action using a function similar to above?
I've tried {$form->joomla_registration['Email']} and a few other derivatives of this, but no joy so far.

I am sure it is a small task but I just can't nail it!

thanks a lot.
GreyHead 22 Sep, 2015
Hi mdma,

$form->data['_PLUG-INS_']['joomla_registration']['Email']

Bob
mapme 22 Sep, 2015
Thanks a lot Bob - that's perfect!
This topic is locked and no more replies can be posted.