Erkbeg
2014-11-12 09:11
Warning: require_once(./libs/controller/indexController.class.php) [function.require-once]: failed to open stream: No such file or directory in C:\AppServ\www\news\framework\function\function.phpon line 3
Fatal error: require_once() [function.require]: Failed opening required './libs/controller/indexController.class.php' (include_path='.;C:\php5\pear') inC:\AppServ\www\news\framework\function\function.php on line 3
				路径不对,找不到文件
				require_once('../libs/controller/indexController.class.php)');我的windows电脑是这样的
				require_once(dirname(__FILE__).'/libs/Controller/'.$name.'Controller.class.php');
Mac 电脑要这样才行~  
				请问你解决了这个问题了吗?我也遇到了,还没找到原因
				不好意思,我回复的是错的!
				因为老师把function/function.php移动到了framework目录下,所以function.php里的require_once的路径应该要更改
				是不是括号内没有加双引号,加个试试;  路径是否正确
MVC架构模式分析与设计
82447 学习 · 954 问题
相似问题
回答 1
回答 2