摘要: 没有框架想用D方法和C方法怎么办?首先在配置文件中定义好方法://实例化模型 function D($class_name) { $class_name = explode('.', $class_name); $class_name = "$class_name[0]_$class_name[1]"; return new $class_name(); } //读取配置文件常量 function C($name){ $config = require APP_PATH .... 阅读全文
posted @ 2013-08-14 17:16 水月灵心 阅读(340) 评论(0) 推荐(0) 编辑
摘要: 1. apache配置文件httpd.conf虚拟主机打开# Virtual hostsInclude conf/extra/httpd-vhosts.conf2. apache配置文件httpd.conf中rewrite打开LoadModule rewrite_module modules/mod_rewrite.so3. \wamp\bin\apache\apache2.2.22\conf\extra\httpd-vhosts.conf中配置虚拟主机 DocumentRoot "C:/wamp/www/story6107/" ServerName api.xxx.com 阅读全文
posted @ 2013-08-14 15:24 水月灵心 阅读(174) 评论(0) 推荐(0) 编辑