php小白无耻下问
user_index.php有几个变量想显示在page_index.php上面,类似下面这样:
<?php echo $rt['userinfo']['user_id'];?>
但是在page_index.php取不到数据,即便是把user_index.php内容全部粘过去也不行,全局搜索user_index发现下面这段代码,不知道是不是因为这个:
if(!defined(NAVNAME)) define('NAVNAME', "会员中心");
$this->set('rt',$rt);
$mb = $GLOBALS['LANG']['mubanid'] > 0 ? $GLOBALS['LANG']['mubanid'] : '';
$this->set('mubanid',$GLOBALS['LANG']['mubanid']);
$this->template($mb.'/user_index');
v2er都很热心的(囧)
user_index.php有几个变量想显示在page_index.php上面,类似下面这样:
<?php echo $rt['userinfo']['user_id'];?>
但是在page_index.php取不到数据,即便是把user_index.php内容全部粘过去也不行,全局搜索user_index发现下面这段代码,不知道是不是因为这个:
if(!defined(NAVNAME)) define('NAVNAME', "会员中心");
$this->set('rt',$rt);
$mb = $GLOBALS['LANG']['mubanid'] > 0 ? $GLOBALS['LANG']['mubanid'] : '';
$this->set('mubanid',$GLOBALS['LANG']['mubanid']);
$this->template($mb.'/user_index');
v2er都很热心的(囧)