By: starmonkey
Date: 2005-11-23
Time: 06:34
|
more MergeBlock funhi there - another simple problem I think!
in my .php, I have
the echo statement shows me a filled array of data that i want, for example:
however, in my.html, I use the following:
and I see:
I dont' undersstand, it should be there? thanks, sm |
||||
By: Solaris
Date: 2005-11-23
Time: 13:55
|
Re: more MergeBlock funi think this is wrong
$TBS->MergeBlock('thepost','array','blog_post'); and it should be $TBS->MergeBlock('thepost','array',$blog_post); see http://lamp.clausvb.de/tbs_examples/loop_block.php http://www.tinybutstrong.com/examples.php for further informations. CU Solaris |
||||
By: Skrol29
Date: 2005-11-23
Time: 17:20
|
Re: more MergeBlock funHi Solaris,
Both of your syntaxes are ok. I think SmartMonkey has a problem because its variable $blog_post is not an array of records (I mean an array of array), but a single record (I mean a simple array). Its code should be:
or:
|
||||
By: starmonkey
Date: 2005-11-24
Time: 00:29
|
Re: more MergeBlock funhi there and thanks for the replies. according to the manual, what I'm doing is correct:
so I'm going for case1, and trying to link the associative array by reference to the block rather than copying the array by supplying the assoc array directly into the MergeBlock. According to the above manual entry, I don't think I _should_ need to do:
but I'll give it a try and see if that works but really, I should be able to do what I'm doing? perhaps the variable is going out of scope or something. thanks heaps for your replies! p.s. it's "Star" monkey, not "Smart" monkey, but thanks for the compliment :) hehe |
||||
By: Solaris
Date: 2005-11-24
Time: 09:17
|
Re: more MergeBlock funyeah skrol is right ... your array is wrong
cannot work it has to be:
please look at the examples. IMHO you did not do that, otherwise you would have seen the difference. your array would work with
CU Solaris |