【问题标题】:Page not found on action page when Using ZendFramework in EC2 linux在 EC2 linux 中使用 ZendFramework 时在操作页面上找不到页面
【发布时间】:2025-12-09 06:35:01
【问题描述】:

我刚刚在我的 ec2 映像中设置了一个灯堆栈,现在我正在尝试在其中使用 ZendFramework 1.11.12。

这就是我目前所做的:

1. Go to /etc/httpd/conf/httpd.conf and change all 'AllowOverride None' to 'AllowOverride All'. Restart apache;
2. Set up an alias for zend_tool: 'alias zf=/path/to/bin/zf.sh'. I use zf for it;
3. Use 'zf create project xxx' to create a project. Here I can go to the Index controller by entering 'ipAddress/xxx';
4. Use 'zf create action test Index' to create a action called 'test' in the Index controller. And I failed on this step ... ...

谁能告诉我我错过了什么?

提前谢谢你:)

【问题讨论】:

    标签: apache zend-framework amazon-ec2


    【解决方案1】:

    只是错过了网址上的一个虚拟部分......没关系。所以 Zend 中 url 的语法是这样的:ipAdress/controller/action。我在行动之前错过了控制器。这就解释了答案。

    【讨论】:

      最近更新 更多