mnjon1997
(Masihnewbie1997)
1
[font="Times New Roman"]
bro , help me please , my image isn’t appear in my browser, is my code true
i make the picture’s news in [font=“Comic Sans MS”]E:\xampp\htdocs\forumm\news[/font]
[/font]
<?php
$terserah=array();
foreach($dataProvider->getData() as $i=>$ii)
{
$itu=Chtml::link($ii['judul'],array('news/view','id'=>$ii['id']));
$awal='/../news/'.$ii['id'].$ii['foto'];
$terserah[$i]=array($awal,$itu);
}
$this->widget('application.extensions.s3slider.S3Slider',
array(
'images' => $terserah,
'width' => '590',
'height' => '375',
)
);
?>
patrickm
(Yiiframework)
2
It’s good practice to write your code in English.
Have a look at the network activity and see if there are any 404.
mnjon1997
(Masihnewbie1997)
3
please tell to me, what’s it wrong
help me bro…
patrickm
(Yiiframework)
4
I’m not going to tell you what’s wrong - I’ll help you to figure it out.
Go to your browser’s Developer Tools (F12) and check the network tab to see if there are any 404s.
mnjon1997
(Masihnewbie1997)
5
this is appearing in my browser master …
7068
patrickm
(Yiiframework)
6
Now you know which URL is causing the 404.
What would the URL need to look like to work? What do you need to type into your browser to see the image?
mnjon1997
(Masihnewbie1997)
7
jquery-ui.css not found, and i download the jquery,but it’s not happen anyhting, or beacause i have yii 1.14 master
and what has the jquery-ui.css registered in my ‘yii’ master
patrickm
(Yiiframework)
8
Your issue (for now) is not jquery, it’s “1.png”.
mnjon1997
(Masihnewbie1997)
9
it isn’t show anything master…
7069
patrickm
(Yiiframework)
10
If the image is being loaded but not displayed, locate it in the DOM (use your Developer Tools) and find out why.
mnjon1997
(Masihnewbie1997)
11
this is the error master …
7070
mnjon1997
(Masihnewbie1997)
12
[solved]
in s3slider.php , line : 71
.s3slider(timeOut : 4000);";
must be
.s3slider({timeOut : 4000});";