2013年12月25日

phpcms v9 源码解析(4)content模块下的index.php文件的init()方法解析

摘要: 在了解index.php中的init函数的时候,让我们先看看最开始的几行代码1-5 第二行, defined('IN_PHPCMS') or exit('Nopermission resources');我的这个index.php文件绝对路径是这样http://localhost/phpcms/phpcms/modules/content/index.php当我直接打开的时候 ,提示错误, No permission resources.这是phpcms 单一入口的体现,文件不能直接访问,必须遵守phpcms的规则3-5行, 分别定义了CACHE_MODEL_P 阅读全文

posted @ 2013-12-25 18:38 Hebe.大成 阅读(1143) 评论(0) 推荐(0) 编辑

导航