致命错误-找不到Login_Plugin_SecurityCheck [英] Fatal error - Login_Plugin_SecurityCheck not found
问题描述
我正在尝试使用PHP/Zend实现用户登录.遵循以下示例: https://github.com/ezimuel/Authentication-and-authorization-with -ZF.git
I am trying to implement user login using PHP/Zend. Following the example below: https://github.com/ezimuel/Authentication-and-authorization-with-ZF.git
警告:include_once(Login/Plugin/SecurityCheck.php)[function.include-once]:无法打开流:/Library/WebServer/Documents/xxxxx/library/Zend/Loader.php中没有此类文件或目录在第146行上
Warning: include_once(Login/Plugin/SecurityCheck.php) [function.include-once]: failed to open stream: No such file or directory in /Library/WebServer/Documents/xxxxx/library/Zend/Loader.php on line 146
警告:include_once()[function.include]:无法打开要包含的"Login/Plugin/SecurityCheck.php"(include_path ='/Library/WebServer/Documents/xxxxx/application/../library:/Library/在/Library/WebServer/Documents/xxxxx/library/Zend/Loader中的WebServer/Documents/xxxxx/library:/Library/WebServer/Documents/xxxxx/application/modules/login/library:.:/usr/lib/php') .php行146
Warning: include_once() [function.include]: Failed opening 'Login/Plugin/SecurityCheck.php' for inclusion (include_path='/Library/WebServer/Documents/xxxxx/application/../library:/Library/WebServer/Documents/xxxxx/library:/Library/WebServer/Documents/xxxxx/application/modules/login/library:.:/usr/lib/php') in /Library/WebServer/Documents/xxxxx/library/Zend/Loader.php on line 146
致命错误:在第117行的/Library/WebServer/Documents/xxxxx/library/Zend/Application/Resource/Frontcontroller.php中找不到类"Login_Plugin_SecurityCheck"
Fatal error: Class 'Login_Plugin_SecurityCheck' not found in /Library/WebServer/Documents/xxxxx/library/Zend/Application/Resource/Frontcontroller.php on line 117
我按照Zend快速入门教程设置了项目,所以我的application.ini文件略有不同.我猜这是应用程序无法找到某些文件的简单情况?
I setup the project by following the Zend Quickstart Tutorials, so my application.ini file is slightly different. Im guessing this is a simple case of the application not being able to find certain files?
推荐答案
在您的application.ini
中是否有这些行:
Have you got these lines in your application.ini
:
resources.frontController.defaultModule = "login"
resources.frontController.params.prefixDefaultModule = "1"
resources.modules[]=
resources.frontController.moduleDirectory = APPLICATION_PATH "/modules"
resources.frontController.plugins[] = "Login_Plugin_SecurityCheck"
此外,我注意到该插件在配置中指定为Login_Plugin_SecurityCheck
,但是在登录模块中,该文件夹为plugins
,而不是plugin
.
Also, I notice the plugin is specified in the config as Login_Plugin_SecurityCheck
, but in the login module, the folder is plugins
, not plugin
.
这篇关于致命错误-找不到Login_Plugin_SecurityCheck的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!