|
从站内下载了书中代码
foreach ($listing as $key => $list){
echo "<div class='productlisting'><img src='".$list['thumbnail']."' border='0' class='thumbnail'/>\n";
echo "<h4>";
结果:
<div class="productlisting">
<img class="thumbnail" border="0" src="/images/dummy-thumb.jpg"/>
图像显示不到, 缺乏了url_base
请教如何加上url_base
<img class="thumbnail" border="0" src="http://localhost/testsite/images/dummy-thumb.jpg"/>
thx |
|