Question
$t->prepend( )
Answer
$t->prepend( )
$t->prepend("Text in the header");
Description #
This is a function generated by the interaction builder Prepend will add any text or HTML in the Header field of the interaction builder before the result returned in $t. Often used to create a page header this function can also be used to display multiple results as well as seen in the example below.
Parameters #
A String
Return values#
Returns source before $t->result
Examples #
$t->fetch("[http://blinkmobile.com.au/index.php/meet-the-team/board-members");]
$t->rows(
"|
{NAME}
~*<img src="\"{IMAGE}\"" border="\"~*" align="\"LEFT\"" alt="" />{DESCRIPTION}
{NAME}
<img src="\"{IMAGE}\"" alt="" />
{DESCRIPTION}
" ); $t->resolveurls(); $directors = $t->result; $t->fetch("[http://blinkmobile.com.au/index.php/meet-the-team/staff");] $t->rows( "|~*{NAME}
~*<img src="\"{IMAGE}alt=~*\"LEFT\"" alt="" />{DESCRIPTION}
{NAME}
<img src="\"{IMAGE}\"" alt="" />
{DESCRIPTION} " ); $t->resolveurls(); $t->prepend($directors); return $t->result;