Flex、zend制作错误

发布于 2024-10-12 03:18:11 字数 881 浏览 4 评论 0原文

我有我的 flex、php 和zend 项目在本地主机上工作正常,但是当我尝试将其移至生产环境时,出现以下错误:

Class "testService" does not exist: Plugin by name 'testService' was not found in the registry; used     
paths:
: /home/myNewFolder/services/
#0 /home/ZendFramework/library/Zend/Amf/Server.php(550): Zend_Amf_Server->_dispatch('paged', Array,     
'testService')
#1 /home/ZendFramework/library/Zend/Amf/Server.php(626): Zend_Amf_Server-   
>_handle(Object(Zend_Amf_Request_Http))
#2 /home/myNewFolder/gateway.php(69): Zend_Amf_Server->handle()
#3 {main}

我的 amf_config 文件如下:

[zend]
webroot =/home/myNewFolder
zend_path =/home/ZendFramework/library
[zendamf]
amf.production = false
amf.directories[]=services

my .swf & services 文件夹位于“myNewFolder”中,该文件夹位于我的目录的根目录下。

我使用的是 Zend 版本 1.9.4,Flex SDK 4.1。我的本地主机是 windows &生产主机是Linux

I've got my flex, php & zend project working fine on localhost but when I try to move it to production I get the following error:

Class "testService" does not exist: Plugin by name 'testService' was not found in the registry; used     
paths:
: /home/myNewFolder/services/
#0 /home/ZendFramework/library/Zend/Amf/Server.php(550): Zend_Amf_Server->_dispatch('paged', Array,     
'testService')
#1 /home/ZendFramework/library/Zend/Amf/Server.php(626): Zend_Amf_Server-   
>_handle(Object(Zend_Amf_Request_Http))
#2 /home/myNewFolder/gateway.php(69): Zend_Amf_Server->handle()
#3 {main}

I've got my amf_config file as follows:

[zend]
webroot =/home/myNewFolder
zend_path =/home/ZendFramework/library
[zendamf]
amf.production = false
amf.directories[]=services

my .swf & services folder are located in "myNewFolder", which is located under the root of my directory.

I am using Zend version 1.9.4, Flex SDK 4.1. My localhost is windows & production host is Linux

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

梦中楼上月下 2024-10-19 03:18:11

两个潜在的问题,服务器上的home不是你想象的路径。打印主页到屏幕以查看那里有什么。其次,始终、始终使用小写字母。当你编写myApp、MyApp或Myapp时会出现太多问题。只需编写 myapp 即可,不用再担心

编辑:稍等一下,您的服务路径错误。我假设它位于新文件夹下。您的 amf 目录应更改为 amf.directories[]=./services

two potential problems, the home on the server is not the path you think. Print home to screen to see what is there. Second, always, always use small letters. Too many problems arise when you write myApp, MyApp or Myapp. just write myapp, and do not worry again

Edit: wait a second, your services path is wrong. I assume it is under New Folder. Your amf directories should change to amf.directories[]=./services

强辩 2024-10-19 03:18:11

请记住,Unix 区分大小写,而 Windows 不检查大小写,因此您的文件应命名为 testService.php 或 TestService.php。

Remember that Unix is case sensitive, and Windows doesn't so check the case, your file should be named testService.php, or TestService.php.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文