随笔分类 -  discuz

摘要:dz采用的是多入口的方式,在每个入口函数你能看到引用,启动核心类的语句(其余省略),如下:require './source/class/class_core.php';C::app()->init();我们进入class_core.php看看,这是dz项目的启动类a)首先做的自定义异常处理,自定义错误处理,自定义自动装载函数。set_exception_handler(array('core', 'handleException')); //自定义异常处理//如果开启debug,则自定义错误处理if(DISCUZ_CORE_DEBUG) 阅读全文
posted @ 2014-02-08 15:16 Yolandafans 阅读(739) 评论(0) 推荐(0)
摘要:今天开始阅读discuz2.5的源码,这是发现的一些收获,记录一下。有兴趣的同学可以去试试CREATE TABLE pre_forum_post (pid int(10) unsigned NOT NULL COMMENT '帖子id',fid mediumint(8) unsigned NOT NULL default '0' COMMENT '论坛id',tid mediumint(8) unsigned NOT NULL default '0' COMMENT '主题id',`first` tinyint(1 阅读全文
posted @ 2012-07-15 20:17 Yolandafans 阅读(567) 评论(0) 推荐(0)