Zend framework zend中应用程序文件夹外的模块
Zend framework zend中应用程序文件夹外的模块,zend-framework,Zend Framework,我有这样的目录结构
Application
Config
application.ini
Controllers
modules
default
admin
Bootstrap.php
Install
Controllers
views
Bootstrap.php
index.php
我想先运行Install/Bootstrap.php。
如何以及在何处定义此类配置?
如何定义安装模块的路径
我有这样的目录结构
Application
Config
application.ini
Controllers
modules
default
admin
Bootstrap.php
Install
Controllers
views
Bootstrap.php
index.php
我想先运行Install/Bootstrap.php。
如何以及在何处定义此类配置?
如何定义安装模块的路径?我为一个可重用的ZF站点创建了一个安装程序。我认为你做得不对
我就是这样做到的:
我实际上有两个不同的Zend应用程序。一个是严格的安装,一个是我的应用程序,需要一次性安装
它们都共享一个库目录
默认情况下,webroot中的.htaccess将用户指向install.php(这将调用安装应用程序的引导)
安装应用程序的最后一步是修改.htaccess以将所有未来请求发送到index.php(实际应用程序),并拒绝对install.php文件的所有访问
我的目录结构
|-application
| |-modules
| | |-default
| | |-admin
| |-config
| |-Bootstrap.php
|-public (webroot)
| |-index.php
| |-install.php
| |-.htaccess
|-private
| |-installer
| | |-application
| | | |-modules
| | | | |-default
| | | |-config
| | | |-Bootstrap.php
|-library
| |-Zend
|-应用
||-模块
|| |-默认值
|| |-管理员
||-配置
||-Bootstrap.php
|-公共(webroot)
||-index.php
||-install.php
||-.htaccess
|-私人的
||-安装程序
|| |-应用
|| | |-模块
|| | | |-默认值
|| | |-配置
|| | |-Bootstrap.php
|-图书馆
|| Zend