我有一个具有以下结构的 Zend 应用程序:
application
configs
application.ini
modules
api
controllers
Bootstrap.php
default
controllers
IndexController.php
models
views
scripts
index
index.phtml
layouts
layout.phtml
Bootstrap.php
我的 application/configs/application.ini 看起来像这样:
phpSettings.display_startup_errors = 0
phpSettings.display_errors = 0
includePaths.library = APPLICATION_PATH "/../library"
bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
bootstrap.class = "Bootstrap"
appnamespace = "Application"
resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers"
resources.frontController.params.displayExceptions = 0
resources.db.adapter = "PDO_SQLITE"
resources.db.params.dbname = APPLICATION_PATH "/../data/db/test.sqlite3"
resources.modules = ""
resources.frontController.params.prefixDefaultModule = "1"
resources.frontController.moduleDirectory = APPLICATION_PATH "/modules"
resources.layout.layoutPath = APPLICATION_PATH "/modules/default/views/layout/"
我的问题是无论我做什么我都无法使用布局。如果我去http://test.app/index/index,我可以看到视图脚本的输出,但看不到布局。