Hi
While I cannot see the code from your old application... I would have to guess that somewhere in there you had a php routine that decoded each line in the flat file so that the individual fields could be displayed.
That's one place that you could begin to migrate your code.
TBS only requires that the data to be displayed be contained in an array or object -- so you just need to use that old routine to create the array that TBS will use in the MergeBlock process.
The following psuedo-code might illustrate...
$records = file('flatfile_name.ext');
foreach( $records AS $rec_num=>$record ) {
// read the line by the !#! delimeter into fields
$fields = explode("!#!", $record);
$TBS_Array[] =
array("id"=>$fields[0],"name"=>$fields[1],"surname"=>$fields[2],"address"=>$fields[3]);
}
$TBS->MergeBlock('blk1', $TBS_Array); |
Hope that gets you started,