PikaChoose is a JQuery based image slider/gallery plugin
Requirements ¶
Yii 1.1.x
Usage ¶
1 - Extract in extensions folder 2 - Call as
$data=array(
'<img src="">',
'<a href=""><img src=""></a>',
);
$this->widget('ext.pikachoose.pikachoose', array(
'data'=>$data,
'options'=>array(
'carousel'=>false,
//other options
)
));
Help me out...
First of all thanks for this great extension..
This is my code for $data..
$data=array( '<img src="'.Yii::app()->getBaseUrl(true).'/picture/upload/138-308820_455809021132696_788403605_n.jpg">', '<img src="'.Yii::app()->getBaseUrl(true).'/picture/upload/3140-644187_524939004219697_729257249_n.jpg">', '<img src="'.Yii::app()->getBaseUrl(true).'/picture/upload/138-308820_455809021132696_788403605_n.jpg">', '<img src="'.Yii::app()->getBaseUrl(true).'/picture/upload/602199_602350699777748_102068258_n.jpg">', );
but I dont know how to use anchor tag.
'<a href=""><img src=""></a>',
Can you please help me out!!!
Another error occurred before this.
In line 46 pikachose.php
if($this->default['carousel']){
It shows error like Illegal string offset 'carousel'. If I remove tat carousel like
if($this->default){
it shows no error...
@karte
Including a anchor, you can do it as simple
'<a href="URL of the page "><img src="url of the image"></a>',
it is as like as you are doing with images with a wrapper of hyperlink.
Update code with
if(isset($this->default['carousel'])){
Thanks
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.