请看这段代码:
<?php
  include_once("include/mysql_config.inc.php");  //调用mysql操作类
  include_once("include/config.inc.php");  //调用配置文件
  include_once("include/function.inc.php");   //调用常用函数库
  include_once("include/blog.inc.php");  //调用blog操作类 
  $blog = new blog($db);
  $aId=($_REQUEST['aId']>0)?$_REQUEST['aId']:0;
  $blogSetting = $blog->getSetting();//获得BLOG设置
  $blogCat = $blog->getCat();
  $bokeList = $blog->getList($cId,0,10,"AND bokeUrl<>''","aId DESC"); //获得播客列表
  $blogList = $blog->getList($cId,0,10,"","aId DESC");//获得博客列表
  //$blogDate = $blog->getBlogDate();//获得当月链接 //此模块还在开发中
  $blogReview = $blog->getReview(0,'','');//获得最新评论
  $blogLink = $blog->getLink();//获得链接
  $blogGuest = $blog->getGuest(0,10);//获得最新留言*/
  $tpl        = & myBlogtpl();
  $tpl->parse($blogSetting['sKin']."/index.html"); //获得模版页面
  $tpl->set(
            array(
      "blogSetting"=>$blogSetting,
  "blogCat"=>$blogCat,
  "bokeList"=>$bokeList,
  "blogList"=>$blogList,
  "blogNewList"=>$blogNewList,
  "blogDate"=>$blogDate,
  "blogReview"=>$blogReview,
  "blogLink"=>$blogLink,
  "blogGuest"=>$blogGuest,
  "aid" => $aId,
  )
  );
  $tpl->output();
?>
红色的字是什么意思? 4个include_once里面没有myBlogtpl()这个函数, 这么写是什么意思,还有前面的&。我是初学者,谢谢大家。

解决方案 »

  1.   

    $tpl = & myBlogtpl();//相当于一个函数调用啦,只是采用引用
      

  2.   

    不在4个include_once中,当前页也没有,会放在哪里呢?
      

  3.   

    不是在你include_once的类里面吗?
      

  4.   

    当然不是了,我找了4个include_once,都没有。所以我才奇怪啊,这个是我找的开源代码。
      

  5.   

    问题这个是index.php,实在不知道写在哪了