Ausgabe der globalen Variable für lastLogin und currentLogin
Hallo zusammen!
Möchte gerne in einem Modul den Wert der globalen Variable für lastLogin und currentLogin (s. Code unten) auswerten. Habe mir dazu die globalen Variablen mittels
PHP-Code:
<?php print_r($GLOBALS); ?>
ausgeben lassen und schon ziemlich viel probiert (Trial & Error :(), komme jedoch nicht auf die richtige Syntax. Habe z.B. $GLOBALS['controller']['User']['lastLogin'] probiert.
Code:
[controller] => Contao\FrontendIndex Object
(
...
[arrObjects:protected] => Array
(
[User] => Contao\FrontendUser Object
(
[strTable:protected] => tl_member
[strCookie:protected] => FE_USER_AUTH
[strLoginPage:protected] =>
[arrGroups:protected] => a:1:{i:0;s:1:"1";}
[intId:protected] => 8
[strIp:protected] => 93.239.177.89
[strHash:protected] => 8290ea00ffb08af5bcc209df65ccfba133da9991
[arrData:protected] => Array
(
[id] => 8
[tstamp] => 1455780581
...
[lastLogin] => 1456775021
[currentLogin] => 1456838398
...
Wäre schön, wenn jemand Bescheid wüsste (und mir's auch postet ;-)).