Hello fellow kirby lovers.
I just find out about something while using bricks.
So i’m using brick::append()
to inject a string into a <b>
element. Like so :
$b = brick('b')->append('Twitter');
Wich, i thought, was supposed to return :
<b>Twitter</b>
.
However, this actually trigger the twitter()
helper, trying to build a twitter link. (And throw a whoops E_Warning because the twitter helper is missing arguments, well, it does cause i didn’t wanted to use it)
Althrough, the use of append()
for this isn’t the best method compared to brick::text()
, which i use to solve my case, but i was wondering if this is a normal behavior l and i just missunderstood something about append()
and PHP, or if this an actual issue ?
Thanks for reading and wishe you best.
W.