Problem array in a load boxHi, sorry for my english, i'm french,
Since 5years, i have been used tbs 3.2.0, and i updated to 3.9.0 2 hours ago.
So i have a new problem, this is:
In my code php i have:
In my html template i have
No problem for now, it's print me "game/template/block/menu.block.html",
but now when i put this
TinyButStrong Error in field [var._render.path_menu...]: item 'path_menu' is not an existing key in the array. This message can be cancelled using parameter 'noerr'.
I dont understand, why tbs cannt find path_menu....
Can you help me please ? I'm trying upgrade my tbs code 3.2.0 to 3.9.0, not easy, thanks you
Re: Problem array in a load boxBonjour Jqturo,
[var] fields such as [var._render.path_menu] are the same as [onshow] fields.
[var._render.path_menu] should be converted into [onshow._render.path_menu].
Or [onload;file=[var._render.path_menu]] should be replaced with [onshow;file=[var._render.path_menu]]
The point is that [onload] fields are merged during LoadTemplate(). While [onshow] are merged during Show().
So if your global variable $_render is defined between LoadTemplate() and Show() then it cannot be merged during LoadTemplate() because this not set at this time.