I created a class which extends phptal, so this class can handle a
couple of common tasks (eg adding javascript includes)

it seems that assigning variables to an array, one by one, doesn't
work? the values are set, but are not available in the template.

Let me clarify, if needed:

$this->myarray[] = 'val1';
$this->myarray[] = 'val2';

doesn't work, whereas

$this->myarray = array('val1', 'val2');

works fine. Also

$this->myarray_temp[] = 'val1';
$this->myarray_temp[] = 'val2';
$this->myarray = $this->myarray_temp;

works fine.

Is this known (and wanted?) behaviour ?

PHPTAL mailing list

Reply via email to