Re: [fw-general] Zend_Config: merge and extends

2009-01-30 Thread Jan Pieper
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Argh, thanks :-)

- -- Jan

> The built in merge method of Zend_Config is just what you're looking for:
> 
> $config = new Zend_Config...;
> $config2 = new Zend_Config.;
> 
> $config->merge($config2);
> // In this case, $config2 will be merged into $config.
> 
> 
> 
> 
> On 30/01/2009 2:49 AM, Jan Pieper wrote:
>> Is it possible to use "extends" in an array? I need to merge X config
>> files to one config.
>>
>> I currently convert them to an array to merge them, but then the
>> "extends" will be lost.
>>
>> - this two config files -
>>
>> 
>>
>>  5
>>
>> 
>>
>> 
>>...
>>...
>> 
>>
>> -- should be merged to --
>>
>> 
>>
>>  5
>>
>>...
>>...
>> 
>>
>> -
>>
>> Any clue how to merge X config files without losing "extends"? I see
>> only a way using DOM but it should also work with Ini configs.
>>
>> -- Jan
> 

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmDOyEACgkQAmDzOgJaVSGqlACgj4iHC7dMmCW2F07VVk2NtBWb
+vcAoLhmh8lzZeeAxW3jwg9Rh0YgxlPd
=ahbQ
-END PGP SIGNATURE-


smime.p7s
Description: S/MIME Cryptographic Signature


Re: [fw-general] Zend_Config: merge and extends

2009-01-30 Thread Jason Webster

The built in merge method of Zend_Config is just what you're looking for:

$config = new Zend_Config...;
$config2 = new Zend_Config.;

$config->merge($config2);
// In this case, $config2 will be merged into $config.




On 30/01/2009 2:49 AM, Jan Pieper wrote:

Is it possible to use "extends" in an array? I need to merge X config files to 
one config.

I currently convert them to an array to merge them, but then the "extends" will 
be lost.

- this two config files -


   
 5
   



   ...
   ...


-- should be merged to --


   
 5
   
   ...
   ...


-

Any clue how to merge X config files without losing "extends"? I see only a way 
using DOM but it should also work with Ini configs.

-- Jan




[fw-general] Zend_Config: merge and extends

2009-01-30 Thread Jan Pieper
Is it possible to use "extends" in an array? I need to merge X config files to 
one config.

I currently convert them to an array to merge them, but then the "extends" will 
be lost.

- this two config files -


  
5
  



  ...
  ...


-- should be merged to --


  
5
  
  ...
  ...


-

Any clue how to merge X config files without losing "extends"? I see only a way 
using DOM but it should also work with Ini configs.

-- Jan
-- 
Pt! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: 
http://www.gmx.net/de/go/multimessenger01