Re: Structures_DataGrid_Column::format()
| From: | Luca Giandoso | Date: | Wed, 15 Aug 2007 08:01:38 +0000 |
| Subject: | Re: Structures_DataGrid_Column::format() | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-27820@lists.php.net to get a copy of this message | ||
Have you tried with a callback function?
Luca
On 8/15/07, Ian Warner <iwarner@domainsregistry.net> wrote:
> 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
>
> --
> PEAR General Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>