Re: [Structures_DataGrid] Column value as url

From: Date: Wed, 07 Feb 2007 18:26:11 +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-26523@lists.php.net to get a copy of this message
Luca Giandoso 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; }
Btw, Luca's solution might be better than the convertEntities option, if you only want to disable the conversion for a single column, while keeping it enabled for the other columns. -- Olivier

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