-> 这个符号在php编程中代表什么呢? $body=$lv->Display();经常有看到php源码里这么写,-> 这个标记一直不了解确切含义,请解释下。提供详细介绍资料的加分。呵呵。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 看顺着代码去看到了调用了。但是这里$body= 赋值给他,好像米有效果。。类是dede的列表类。 //显示列表 function Display() { if($this->TypeLink->TypeInfos['ispart']>0) { $this->DisplayPartTemplets(); return ; } $this->CountRecord(); if((empty($this->PageNo) || $this->PageNo==1) && $this->TypeLink->TypeInfos['ispart']==1) { $tmpdir = $GLOBALS['cfg_basedir'].$GLOBALS['cfg_templets_dir']; $tempfile = str_replace("{tid}",$this->TypeID,$this->Fields['tempindex']); $tempfile = str_replace("{cid}",$this->ChannelUnit->ChannelInfos['nid'],$tempfile); $tempfile = $tmpdir."/".$tempfile; if(!file_exists($tempfile)) { $tempfile = $tmpdir."/".$GLOBALS['cfg_df_style']."/index_default.htm"; } $this->dtp->LoadTemplate($tempfile); } $this->ParseTempletsFirst(); $this->ParseDMFields($this->PageNo,0); $this->dtp->Display(); }如果修改为,让他返回数据,而不是直接输出呢?因为我那边要赋值给$body 谢谢楼上的热心回答,我顺着又去搜索了下文件里的类,按照类名,返回去找到了这么一个函数,修改了下就OK了。呵呵。php不是很熟悉,大致能看懂一些简单的。谢谢楼上帮助。 function Display() { //echo $this->GetResult(); return $this->GetResult(); } php字符串分割高分求助! =============问个问题================= PHP出错了,新人,我想这个问题肯定很好解决. 为什么我一用PHPMYADMIN连接MYSQL就锁死数据库? 假如别人正在访问一个文件index.html,而我正在后台生成该静态页面,用的是fopen,请问会出现无法生成的情况吗? 请教文件下载的问题 时有时无的mysql查询错误 如何用图片覆盖免费主页上的小电影图标呢 php软件安装程序怎么制作? PHP curl响应参数与响应header 中的参数值获取 这段代码最后的结果是多少? 有and 有OR的根据几个字段生成SQL语句
类是dede的列表类。 //显示列表
function Display()
{
if($this->TypeLink->TypeInfos['ispart']>0)
{
$this->DisplayPartTemplets();
return ;
}
$this->CountRecord();
if((empty($this->PageNo) || $this->PageNo==1)
&& $this->TypeLink->TypeInfos['ispart']==1)
{
$tmpdir = $GLOBALS['cfg_basedir'].$GLOBALS['cfg_templets_dir'];
$tempfile = str_replace("{tid}",$this->TypeID,$this->Fields['tempindex']);
$tempfile = str_replace("{cid}",$this->ChannelUnit->ChannelInfos['nid'],$tempfile);
$tempfile = $tmpdir."/".$tempfile;
if(!file_exists($tempfile))
{
$tempfile = $tmpdir."/".$GLOBALS['cfg_df_style']."/index_default.htm";
}
$this->dtp->LoadTemplate($tempfile);
}
$this->ParseTempletsFirst();
$this->ParseDMFields($this->PageNo,0);
$this->dtp->Display();
}如果修改为,让他返回数据,而不是直接输出呢?因为我那边要赋值给$body
{
//echo $this->GetResult();
return $this->GetResult();
}