Re: Notice: Undefined variable: tplData in includes/xarTemplate.php on line 1056

jojodee <jojodee-8nna1qhvBBM9QQeoy3GH/[email protected]> Sat, 17 May 2008 18:51:34 +0930
Newsgroups gmane.comp.cms.xaraya.user
Organization Xaraya
Message-ID <[email protected]>
jojodee wrote:

> So we can fix it easy enough for now:
> 
> $temp = $tplData;
> $tplData['_bl_data']=$temp;
> 
> or
>  tplData['_bl_data'] = &$tplData; should also work.
> 
> 
In the forums we have been discussing what should work.

$tplData['_bl_data'] = &$tplData;

I had tested this construct but not extensively at time of posting, and 
it does work. I'm not sure  we actually need to replicate the whole 
passed in $tplData array in the new _bl_data key.

Can anyone confirm the need for the duplication here? If not we could 
rework the code and save ourselves some duplication and possible further 
recursion problems.

Jo

-- 
http://xarigami.com :: Creative web development with Xaraya