2010年1月11日星期一

Re: [fw-mvc] Manage multiple config file paths with Zend_Application

As far as I know there are three options you have:

1) Create your own navigation resource, overloading the zend navigation
resource. It supports an additional parameter (e.g. configPath) and is able to
load that config as its own Zend_Config instance

2) Extend Zend_Application to be able to pass an array of config files

3) Merge configs manually.

I use the third option for my multiple website application. Each website
(index.php) has it's own config file which is merged with the application's
config file. The merged instance is passed to the Zend_Application constructor.

--
Jurian Sluiman
CTO Soflomo V.O.F.
http://soflomo.com

On Monday 11 Jan 2010 16:19:13 Loïc Frering wrote:
> Hi,
>
> I would like to separate my application configuration into multiple ini
> files. It seems that it is not possible for now as Zend_Applicator only
> accepts a string path to a config file, a Zend_Config object or an array of
> options.
>
> Is this limitation known ? Maybe I missed something... I'd particularly
> like to separate my navigation resource configuration which is quite
> verbose from the rest of the configuration.
>
> If this functionality seems pertinent, I could create an Jira entry for
> that
>
> :)
>
> Regards.

没有评论: