今天我用我的设计人员给我的一个flash,flash里面用js调用的xml文件显示图片,可是当我用php处理在页面中显示的时候是空白,不知道是什么原因,
//////////////这个是我处理php的
<?php
if(!defined("APP_PATH")) die("0");
require_once(APPS_PATH . "/site/model/Site.model.php");
$site= new Site(); 
/////////////////////////////////////////////////flash
$condition=null;
$focuslist=$site->getFocuses($condition);
$FocusBean=$focuslist[0];
$tpl->set('FocusBean',$FocusBean);
$subject=$url=$filename=array();
$subject=explode(',',$FocusBean->getSubject());
$url=explode(',',$FocusBean->getUrl());
$filename=explode(',',$FocusBean->getFilename());
$tpl->set('filename',$filename);
$tpl->set('subject',$subject);
$tpl->set('url',$url);
echo "<?xml version=\"1.0\" encoding=\"utf-8\"?>";
$tpl->display('focus_pics.xml');
///////////////////////'focus_pics.xml'页面
<images>
<?php for($i=0;$i<4;$i++){?>
<img>
<url>/attachment/focus/<?php echo $filename[$i]?></url>
<link><?php echo $url[$i]?></link>
<width>548</width>
<height>450</height>
</img>
<?php }?>  
</images>