首页 新闻 会员 周边

我现在网站系统是dedecms,我想用Thinkphp框架开发一些自己想要的功能,但是怎么整合到一起呢?

0
悬赏园豆:100 [已关闭问题] 关闭于 2010-12-10 13:13

IndexAction.class.php里面有一个function:

    public function login(){
        define('DIR', ereg_replace("[/\\]{1,}", '/', dirname(__FILE__) ) );
        require_once(DIR."/../../../../../../include/common.inc.php");
    }

这样的话 我就能引用了dede的配置的配置文件,但是$GLOBALS这里面存的dedecms的参数传不进来,怎么办?

问题补充: function Init($pconnect=false) { $this->linkID = 0; $this->queryString = ''; $this->parameters = Array(); $this->dbHost = $GLOBALS['cfg_dbhost']; $this->dbUser = $GLOBALS['cfg_dbuser']; $this->dbPwd = $GLOBALS['cfg_dbpwd']; $this->dbName = $GLOBALS['cfg_dbname']; $this->dbPrefix = $GLOBALS['cfg_dbprefix']; $this->result["me"] = 0; $this->Open($pconnect); } Thinkphp调用的时候 这些是没有值的………………
kalso的主页 kalso | 初学一级 | 园豆:17
提问于:2010-12-04 15:40
< >
分享
所有回答(1)
0

这里大多是搞.net的,帮不到你了。

Astar | 园豆:40805 (高人七级) | 2010-12-06 13:45
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册