Home  >  Article  >  Backend Development  >  phalcon项目在本地测试没问题,在服务器测试就出现有些controller加载不了,为什么?

phalcon项目在本地测试没问题,在服务器测试就出现有些controller加载不了,为什么?

WBOY
WBOYOriginal
2016-06-06 20:21:371491browse

写的一个项目,用的是php的phalcon框架,在本地测试的好好,然后放到放到ubuntu14.04系统apache服务器中,通过浏览器访问,结果出现有的界面(eg:LoginController,RegisterController)加载没问题,而访问其他的界面的controller(eg:AdminController)就出现PhalconExceptionAdminController handler class cannot be loaded的情况,请问这是怎么回事,怎么解决呢?

回复内容:

写的一个项目,用的是php的phalcon框架,在本地测试的好好,然后放到放到ubuntu14.04系统apache服务器中,通过浏览器访问,结果出现有的界面(eg:LoginController,RegisterController)加载没问题,而访问其他的界面的controller(eg:AdminController)就出现PhalconExceptionAdminController handler class cannot be loaded的情况,请问这是怎么回事,怎么解决呢?

一般来说是文件名大小写的问题
检查一下classname和文件名和文件夹路径吧

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn