【发布时间】:2012-02-08 22:36:50
【问题描述】:
我正在尝试使用 zend 框架开发网站,所以我创建了一个 index.php 文件,我的所有请求都在其中创建并创建了两个控制器,一个是 IndexController,另一个是 TestController
Class IndexController extends Zend_Controller_Action{
public function indexAction(){
echo "Index Index Jamla";
}
public function displayAction(){
echo "Index Display Jamla";
}
}
现在当我访问 url http://test/ 它正确调用 IndexController 及其 IndexAction 函数 但是当我访问网址http://test/index/index 它显示消息 url /index/index is not found on this server 与我访问 http://test/test/index 时相同。
【问题讨论】:
-
我删除了
netbeans标签,因为它与问题没有任何共同之处
标签: zend-framework