What you need to do is something like the following:
$s = new Smarty(...);
$dg =& new Structures_DataGrid(...);
$dg->bind(...);
$dg->fill($s);
$s->display(PATH TO YOUR TEMPLATE);
Ok, I've got it working. Thanks. :)
It gives you the "contents" for the template, i.e. both attributes and
contents for the cells. It may sound trivial, but have a look at the
code: there are more than a few lines.
I see that when it sets the value for the $recordSet variable, it does
so using an associative array using integer values as keys for each
column. Is there something I can do so that it instead uses the column
name as the key?
thnx,
Chris