Structures_DataGrid_Column::format()
| From: | Ian Warner | Date: | Wed, 15 Aug 2007 06:57:23 +0000 |
| Subject: | Structures_DataGrid_Column::format() | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-27819@lists.php.net to get a copy of this message | ||
Hi
I wish to format a data Column into a link as follows:
'detail' => array('printfURL', '<a href="/report/index/ei/%s">$s</a>'));
This way the DATA is the link variable as well as the text inbetween the A tags
in the example
$column->format('printfURL', '<a href="edit.php?key=%s">Edit</a>');
The word Edit is substitued here
The Auto Formater doesnt seem to support this so was wandering how else to format a column to get the desired effect
Cheers