Menu

#64 can't insert integer to template

2.2.x_(production)
open
nobody
None
5
2004-01-19
2004-01-19
Anonymous
No

IF you try put to template, variables who is integer -
you don't get anything.

Sample:
<!-- template.tpt -->
<span>I put here integer = '<sm type="area"
name="integer">'</span>
<!-- end -->

in mod file:

$TEMP =& $this->useTemplate('template');
$int = 293;
$TEMP -> addText($int,'integer');

you get:
I put here integer = ''

if you change mod file:
$TEMP -> addText($int.'','integer');
you get correct text.

Greetz,
Kamil Kowalski
kowalski-kamil[at]wp[dot]pl

Discussion


Log in to post a comment.

MongoDB Logo MongoDB