Hi,
>> Try to run "test/unit/util/sfToolkitTest.php". It will fail. It will
>> succeed though if you remove the "reindex the arrays just in case" lines.
>
> Hmm, where's this file located? I can't find it in Symfony 1.0.6's
> PEAR install or under the root of symfony init-project.
> Anyway, I re
On Aug 14, 5:27 pm, Martin Kreidenweis <[EMAIL PROTECTED]> wrote:
> Hi,
>
> rihad wrote:
> >http://trac.symfony-project.com/trac/ticket/2091
>
> > I've attached a small "works-for-me" type patch to arrayDeepMerge
> > implementing the change.
> > given array(0 => 'Partial', 1 => 'Cache', 2 => 'Form
Hi,
rihad wrote:
> http://trac.symfony-project.com/trac/ticket/2091
>
> I've attached a small "works-for-me" type patch to arrayDeepMerge
> implementing the change.
> given array(0 => 'Partial', 1 => 'Cache', 2 => 'Form'], you can:
>
> - use [-*, Form] to result in array(0 => 'Form')
> - use [-
http://trac.symfony-project.com/trac/ticket/2091
I've attached a small "works-for-me" type patch to arrayDeepMerge
implementing the change.
given array(0 => 'Partial', 1 => 'Cache', 2 => 'Form'], you can:
- use [-*, Form] to result in array(0 => 'Form')
- use [-Cache] to result in array(0 => 'Pa
On Aug 14, 12:33 am, Martin Kreidenweis <[EMAIL PROTECTED]> wrote:
> Maybe some "magic values" like "-*" that can remove array items would be
> a better idea. It is already done for HTML
> assets:http://www.symfony-project.com/book/trunk/07-Inside-the-View-Layer#Fi...
Great! I had a flashback a
On Aug 14, 12:33 am, Martin Kreidenweis <[EMAIL PROTECTED]> wrote:
>
> Maybe some "magic values" like "-*" that can remove array items would be
> a better idea. It is already done for HTML
> assets:http://www.symfony-project.com/book/trunk/07-Inside-the-View-Layer#Fi...
Great! I had a flashback
On Monday, August 13, 2007, Martin Kreidenweis wrote:
> I don't think that's the perfect solution either. One nice thing of the
> whole configuration cascade is that you can define things you need
> everywhere globally and extend them locally. When always redefining
> "user value" arrays this feat
Hi,
> Fixing this "numeric vs. string key" bug (by perhaps utilizing
> (array_merge_recursive ?) will not solve the original problem because
> you still won't be able to completely override the "standard_helpers"
> setting, you'll just be able to append to it. The full solution would
> involve di
> foreach
> (array_unique(array_merge(array_keys($args[0]),array_keys($args[1]))) as $key)
Sorry: array_keys() is the problem code, it should be
array_merge($args[0],$args[1]) because it operates on keys, not
values.
--~--~-~--~~~---~--~~
You received this m
On Aug 13, 4:49 pm, Martin Kreidenweis <[EMAIL PROTECTED]> wrote:
> > When you ask
> > array_merge() to merge these two arrays it overwrites original lhs
> > array elements with same keys of rhs array.
> That's not true.
You're absolutely right, excuse this wording mistake and simply
pretend I
Hi,
> But you should be aware that it worked by accident, and not because
> of design. In PHP lingo, the original standard_helpers array looks
> like array(0 => 'Partial', 1=> 'Cache', 2 => 'Form'); and the new one
> like array(0 => 'Object', 1=> 'Form', 2 => 'Cache'); When you ask
> array_merge(
On Aug 13, 1:42 pm, Alexander Deruwe <[EMAIL PROTECTED]>
wrote:
> On 13 Aug 2007, at 08:20, rihad wrote:
>
> > There's a bug in the way Symfony parses YAML configuration files
> > containing arrays as values. The problem is described in this ticket:
> >http://trac.symfony-project.com/trac/ticket/2
Hi Alexander,
I too posted about this on the symfony forum back in April and nobody
has yet answered it.
I agree though, you do really need the flexibility of at least
disabling a field completely (a bug in my opinion), and possibly
somehow allowing the reordering of the presentation order too.
On 13 Aug 2007, at 08:20, rihad wrote:
> There's a bug in the way Symfony parses YAML configuration files
> containing arrays as values. The problem is described in this ticket:
> http://trac.symfony-project.com/trac/ticket/2091
> In short: the array_merge PHP primitive that lies in the heart of
>
14 matches
Mail list logo