[symfony-devs] Re: Proposal for sfContext::getI18n()

2007-08-13 Thread Carl Vondrick
On Monday, August 13, 2007, Christian Schaefer wrote: > or at least shadow the installation with a > patched class that is just visible to one single project? If you find the appropriate class in the symfony install, you can copy it from that directory into your projects directory with the same

[symfony-devs] Re: Proposal for sfContext::getI18n()

2007-08-13 Thread Christian Schaefer
Matthias N. wrote: > On 13 Aug., 19:16, "Christian Schaefer" <[EMAIL PROTECTED]> wrote: >> hi all, >> >> I am currently trying to fit symfony's i18n feature to my needs. alas >> it is pretty hard to extend the already existing capabilities since >> the use of sfI18N as the i18n class is hardcoded

[symfony-devs] Re: sfToolkit::arrayDeepMerge() does not allow overriding arrays

2007-08-13 Thread rihad
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

[symfony-devs] Re: sfToolkit::arrayDeepMerge() does not allow overriding arrays

2007-08-13 Thread rihad
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

[symfony-devs] Re: ajax file upload

2007-08-13 Thread Janak Jadeja
[EMAIL PROTECTED] wrote: > The plugin is based on the js/swf from the link above & utilize the > sfPJSPlugin for javascript generation. > If u want i can send the plugin but it's far away from beeing perfect. > > On Aug 13, 1:19 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > wrote: > >> i have im

[symfony-devs] Re: sfToolkit::arrayDeepMerge() does not allow overriding arrays

2007-08-13 Thread Carl Vondrick
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

[symfony-devs] Re: sfToolkit::arrayDeepMerge() does not allow overriding arrays

2007-08-13 Thread Martin Kreidenweis
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

[symfony-devs] Re: Proposal for sfContext::getI18n()

2007-08-13 Thread Matthias N.
On 13 Aug., 19:16, "Christian Schaefer" <[EMAIL PROTECTED]> wrote: > hi all, > > I am currently trying to fit symfony's i18n feature to my needs. alas > it is pretty hard to extend the already existing capabilities since > the use of sfI18N as the i18n class is hardcoded in sfContext. I > therefor

[symfony-devs] Proposal for sfContext::getI18n()

2007-08-13 Thread Christian Schaefer
hi all, I am currently trying to fit symfony's i18n feature to my needs. alas it is pretty hard to extend the already existing capabilities since the use of sfI18N as the i18n class is hardcoded in sfContext. I therefor propose the following change in order to be able to configure a replacement i

[symfony-devs] Re: The new symfony CLI system

2007-08-13 Thread Matthias N.
On 3 Aug., 14:05, "Luciano A. Andrade" <[EMAIL PROTECTED]> wrote: > theres is (or will be) a backward compatibile mechanism for old task? > I have a couple of task i like to keep using with the minimun alteration. Are there any information about this question? Is it possible to use good old pake

[symfony-devs] Re: Code Profilling

2007-08-13 Thread Lukas Kahwe Smith
Matthias N. wrote: > On 12 Aug., 19:15, Lukas Kahwe Smith <[EMAIL PROTECTED]> wrote: >> Thierry wrote: >>> The Symfony community has always thought me a great deal regarding a >>> diverse number of php related best practices. >>> I am curious regarding the solutions being used for code profiling.

[symfony-devs] Re: sfToolkit::arrayDeepMerge() does not allow overriding arrays

2007-08-13 Thread rihad
> 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

[symfony-devs] Re: sfToolkit::arrayDeepMerge() does not allow overriding arrays

2007-08-13 Thread rihad
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

[symfony-devs] Re: Code Profilling

2007-08-13 Thread Matthias N.
On 12 Aug., 19:15, Lukas Kahwe Smith <[EMAIL PROTECTED]> wrote: > Thierry wrote: > > The Symfony community has always thought me a great deal regarding a > > diverse number of php related best practices. > > > I am curious regarding the solutions being used for code profiling. > > > I use: > > xde

[symfony-devs] Re: sfToolkit::arrayDeepMerge() does not allow overriding arrays

2007-08-13 Thread Martin Kreidenweis
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(

[symfony-devs] Re: ajax file upload

2007-08-13 Thread [EMAIL PROTECTED]
The plugin is based on the js/swf from the link above & utilize the sfPJSPlugin for javascript generation. If u want i can send the plugin but it's far away from beeing perfect. On Aug 13, 1:19 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > i have implemented the SWFUpload from:http://swfup

[symfony-devs] Re: ajax file upload

2007-08-13 Thread [EMAIL PROTECTED]
i have implemented the SWFUpload from: http://swfupload.mammon.se/ still in development but the plugin in working fine for me: On Aug 9, 4:17 pm, "Myke Hines" <[EMAIL PROTECTED]> wrote: > If you are using YUI, then you should build your own using XHR, rather > then take someone's example using pr

[symfony-devs] Re: sfToolkit::arrayDeepMerge() does not allow overriding arrays

2007-08-13 Thread rihad
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

[symfony-devs] Re: sfToolkit::arrayDeepMerge() does not allow overriding arrays

2007-08-13 Thread Ryan G
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.

[symfony-devs] Re: sfToolkit::arrayDeepMerge() does not allow overriding arrays

2007-08-13 Thread Alexander Deruwe
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 >

[symfony-devs] Re: snipeet broken

2007-08-13 Thread Francois Zaninotto
Thanks for the report, it's fixed now. -Message d'origine- De : symfony-devs@googlegroups.com [mailto:[EMAIL PROTECTED] De la part de Jan Markmann Envoyé : samedi 11 août 2007 22:25 À : symfony developers Objet : [symfony-devs] snipeet broken Seems likes snipeet and it's trac are broke