Re: [Structures_DataGrid] Column value as url

From: Date: Wed, 07 Feb 2007 18:17:19 +0000
Subject: Re: [Structures_DataGrid] Column value as url
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-26521@lists.php.net to get a copy of this message
Justin Patrin has been faster than me... :) On 2/7/07, Luca Giandoso <luca.giandoso@gmail.com> wrote:
Try passing to the column a custom function to format the value: ... $datagrid->addColumn(new Structures_DataGrid_Column(null, null, null, array('width' => '10'), null, 'custom_function')); ... function custom_function($params) {
    extract($params);
    ...
    return $something;
} On 2/7/07, Francesco F <franco@inpe.unipi.it> wrote: Hi, in my database table there is field with url; when i render Structures_DataGrid, the output of this column is automatic "htmlspecialchars". I can't find a setting for disable this feature (in order to display a correct a href link), can anyone help me? Thanks,
        Francesco
-- PEAR General Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.pear.general (#26521) next »