Hi Mario,
My bad - you right: the example is wrong. Try:
<emailList>
<subject>...</subject>
<subject>...</subject>
</emailList>
Essentially, I've put Simon's patch into the codebase. As 1.0.3 has just been
released, I don't suppose it'll be in a shippimg release for a while.
You should find that you can now access multiple elements of the same name
using code like:
i$subject1 = $config->emailList->subject->{0};
or
$subjects = $config->emailList->toArray();
Regards,
Rob...
- original message -
Subject: Re: [fw-general] Bug in Zend_Config_Xml?
From: mbneto <[EMAIL PROTECTED]>
Date: 08/12/2007 5:39 pm
Hi Rob,
I checked the ZF-2285 but the example you used gave me the impression that
you are talking about a different scenario.
<emailList>
<subject1>...</subject1>
<subject2>...</subject2>
</emailList>
Simon's example we want to access the items which has the same node-name
<foo>
<item>3</item> <item>2</item>
</foo>
I assume that the final objective is the same but the example should be
edited IMHO.
- Mario