By: thuc101
Date: 2006-07-05
Time: 18:22
|
object is not work in tbs 3.1.1
this is bug
-----------------------
TinyButStrong Error in field [blk.val.ten...] : item before 'ten' is neither an object nor an array. Its type is NULL. This message can be cancelled using parameter 'noerr'.
TinyButStrong Error in field [blk.val.id...] : item before 'id' is neither an object nor an array. Its type is NULL. This message can be cancelled using parameter 'noerr'.
TinyButStrong Error in field [blk.val.ten...] : item before 'ten' is neither an object nor an array. Its type is NULL. This message can be cancelled using parameter 'noerr'.
TinyButStrong Error in field [blk.val.id...] : item before 'id' is neither an object nor an array. Its type is NULL. This message can be cancelled using parameter 'noerr'.
TinyButStrong Error in field [blk.val.ten...] : item before 'ten' is neither an object nor an array. Its type is NULL. This message can be cancelled using parameter 'noerr'.
TinyButStrong Error in field [blk.val.id...] : item before 'id' is neither an object nor an array. Its type is NULL. This message can be cancelled using parameter 'noerr'.
TinyButStrong Error in field [blk.val.ten...] : item before 'ten' is neither an object nor an array. Its type is NULL. This message can be cancelled using parameter 'noerr'.
TinyButStrong Error in field [blk.val.id...] : item before 'id' is neither an object nor an array. Its type is NULL. This message can be cancelled using parameter 'noerr'.
TinyButStrong Error in field [blk.val.ten...] : item before 'ten' is neither an object nor an array. Its type is NULL. This message can be cancelled using parameter 'noerr'.
-------------
view.html
-------------
<table>
<tr>
<td>ID</td>
<td>name</td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>[blk.val.id]</td>
<td>[blk.val.ten;block=tr]
</td>
<td><a href="javascript:buttonSubmit('del');">del</a></td>
<td><a href="javascript:buttonSubmit('edit');">edit</a></td>
</tr>
<tr>
<td>[blk;block=tr;nodata]There is no data. </td>
</tr>
</table>
-----------
php
-------------
$TBS->LoadTemplate(view.html');
$TBS->MergeBlock('blk',$rows) ;
$TBS->Show(TBS_OUTPUT) ;
------------------
$rows is array of object
-------------------------
What is wrong, help me!!!
ps:this bug is not in tbs 2.5.1
thank you.
|
By: Skrol29
Date: 2006-07-05
Time: 20:31
|
Re: object is not work in tbs 3.1.1
You don't need to use [blk.val.id] to display items from objets with TBS 3 (it was a tric to walkaround a bug). Just code [blk.id] now.
|
By: thuc101
Date: 2006-07-06
Time: 05:41
|
Re: object is not work in tbs 3.1.1
thank you Scroll29, I think tbs is the best template I ever use ( pear,pat template)
|
|
Posting in progress.
Please wait...
|