Tbhtml::thumbnails Bug

Hi all,

Can anybody take a look at my code and tell me as to why i’m getting an error?

The following is my code…


<?php $this->widget('application.extensions.fancybox.EFancyBox', array(

    'target'=>'a[rel=gallery]',

    'config'=>array(),

	));

$image = array();

foreach($model->gallery as $gallery)

{

	$image[] = array('image' => Yii::app()->baseUrl.'/images/'.$gallery->upload_image,array("rel"=>"gallery"),Yii::app()->baseUrl."/images/".$gallery->upload_image,'url'=> array("id"=>"fancy-link","rel"=>"gallery"));

	 

}

echo TbHtml::thumbnails($image);

And the error is …?

I guess about your error:

Your assoziative $image array is incorrect - not always of type ‘key’=>‘value’.

Key of the second and third item?

You can take a look at the source for possible keys: url,image,visible, htmlOptions, label …

Thanks for your reply Joblo…

My error is

htmlspecialchars() expects parameter 1 to be string, array given

Ok, then you have to take care of a correct assoziative image/thumbnails array(key=>value) as I told above