PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » HTML » HTML_Template_Flexy » Bug #10002

setData using array as paramether does not work

Details

Submitted2007-02-01 09:59 UTC
Fromriku dot tuominen at benchmarking dot fi
Assignedalan_k
StatusClosed
PackageHTML_Template_Flexy
PHP Version5.1.4
OSXP
Roadmaps(Not assigned)

Comments

[2007-02-01 09:59 UTC] riku dot tuominen at benchmarking dot fi

Description:
------------
$myArray = array(title=>'JippiiA', title2=>'JippiiB');
$output->setData($myArray);

setData can take paramether 3 different way.
The second way using a array do not work.
It does not populate template tags.

To fix bug:
File: Assign.php
Assign.php,v 1.5

Change Row: 123
$this->assign($key, $val);
to
$this->assign(array($key, $val));