Hallo zusammen,
ich würde gene in dem Template auf den Wert [author] zugreifen.
Da ich bein bisschen unbeholfen darin bin habe ich folgendes versucht:
$this->hasText->author
Klappt leider nicht.
PHP-Code:
[hasText] => Closure Object
(
[static] => Array
(
[objArticle] => Contao\NewsModel Object
(
[arrData:protected] => Array
(
[id] => 4
[pid] => 1
[tstamp] => 1494231113
[headline] => Yoga, Pilates & Co.
[alias] => yoga-pilates-co
[author] => 2
[date] => 1488642720
[time] => 1488642720
[subheadline] => Was steckt hinter den Namen und was versprechen sie?
[teaser] => <p>Edi abori autati quibus a vellupta sed magnatem. Xerum sita si am, omnis is dolum que magniscipsam nullitia inctatio ilit hic te voluptaquia derum volupta earibus aperum aut entur, vellut erupta id ut re, officid exceribus recta sandel estempo rissimin plam</p>
[addImage] => 1
[singleSRC] => ??0??# [type] => belongsTo
[load] => eager
)
[author] => Array
(
[table] => tl_user
[field] => id
[type] => hasOne
[load] => eager
)