madcorp / zfdatagrid

Automatically exported from code.google.com/p/zfdatagrid
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

setImagesUrl(); don't work. #826

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,
$grid->setImagesUrl(); don't work.

i use :
$grid->setImagesUrl('folder/');
$grid->updateColumn('image',array('search'=>false, 'order'=>false, 'position' 
=> 1, 'format'=>'image'));

and the image path is not render :
"
<td>
<img src="052.png">
</td>"

Thanks

Please insert the appropriate values;
                    Zend Framework version:1.10.0
ZFDatgrid Version (Bvb_Grid::getVersion()): 0.8
                          Operating system:linux
                               PHP Version:5
               Database Server and version: Mysql

Original issue reported on code.google.com by jeremy.r...@gmail.com on 19 Feb 2012 at 6:42

GoogleCodeExporter commented 9 years ago
anyone can help me?

Original comment by jeremy.r...@gmail.com on 21 Feb 2012 at 9:56

GoogleCodeExporter commented 9 years ago
Hi,

$grid->setImagesUrl(); defines the images location for up/down arrows, export 
images, etc.

For column value, use this:

$grid->updateColumn('field', array(
format => array(
'image',
array(
'border' => '0',
'class' => 'css_class'
'urlPrefix' => 'http://myurl.com/images/'
)
)
));

Original comment by zfdatag...@gmail.com on 22 Feb 2012 at 2:07

GoogleCodeExporter commented 9 years ago
Thanks but it don't work.
I do : 
$grid->updateColumn('image',array('search'=>false, 'order'=>false, 'position' 
=> 1, 'format'=> array('image',
        array(
            'border' => '0',
            'class' => 'css_class',
            'urlPrefix' => 'http://192.168.26.129/images/client/'
            )
        )));

But the result is :
<img class="css_class" border="0" 
urlprefix="http://192.168.26.129/images/client/" src="226.png">

Original comment by jeremy.r...@gmail.com on 22 Feb 2012 at 4:59

GoogleCodeExporter commented 9 years ago
I have modyfi my class as : 
http://code.google.com/p/zfdatagrid/source/browse/trunk/library/Bvb/Grid/Formatt
er/Image.php?r=1878

And it work fine.
thank you

Original comment by jeremy.r...@gmail.com on 22 Feb 2012 at 5:06