【发布时间】:2012-08-07 07:35:54
【问题描述】:
Zend2
Sources Files
Application
modules
default
controllers
ExampleController.php
views
scripts
form
index.phtml
library
square
form
Form_Example.php
大家好 我正在研究 Zend Framework: A Beginner's guide 第 3 章,我在 Square/Form/Form_Example.php 中有一个 form_example 类,它基本上有一个表单。
modules/default/controllers/ExampleControllers.php 初始化它。但是,我设置了
resources.router.routes.example.route = /example
resources.router.routes.example.defaults.module = default
resources.router.routes.example.defaults.controller = form
resources.router.routes.example.defaults.action = form
在 application.ini 中
当我输入(http://localhost/zend2/public/example)时,它返回一个页面未找到结果,请帮助我以显示我在 Form_Example 中创建的表单
谢谢,非常感谢
【问题讨论】:
-
您是否告诉 ZF 您的 Bootstrap 中的路由文件?
-
您是否启用了错误和警告以查看实际错误?
标签: php zend-framework frameworks routes