Re: [fw-general] copy object from Zend_Session_Namespave

2010-07-16 Thread Nicolas Grevet
See: http://php.net/manual/en/language.oop5.cloning.php Le 16/07/2010 16:46, Mark Hage a écrit : Hi, How can I copy an object from a Zend_Session_Namespace? My code now: $session = new Zend_Session_Namespace('customer'); $oldCustomer = $session-customer; But when I assign a new value to eg.

Re: [fw-general] Fatal error: Call to undefined method Zend_View_Helper_Placeholder_Container::ksort() in /var/local/Zend/View/Helper/HeadLink.php on line 321

2010-06-07 Thread Nicolas Grevet
See: http://www.php.net/manual/en/arrayobject.ksort.php On 06/07/2010 02:12 PM, Bart McLeod wrote: You may be right, this is on a newly installed vps, where they installed a smaller version then I had asked for. 5.1.6 I think. I will check against 5.3, yes, that seems to work as usual.

Re: [fw-general] Admin interface like Django

2010-05-25 Thread Nicolas Grevet
I think you missed the Framework in Zend Framwork. On 05/25/2010 02:41 PM, Bruno Galindro da Costa wrote: Hi all, Is there any admin interface like Django Admin Interface (http://docs.djangoproject.com/en/dev/ref/contrib/admin/) in Zend Framework? -- Att. Bruno Galindro da Costa

Re: [fw-general] Searching the manual

2010-05-18 Thread Nicolas Grevet
AFAIK, the search function never returned anything to me... whatever the language. http://framework.zend.com/manual/search?query=Zend_Localelanguage=enversion=1.10 Regards, -- Nicolas Andrew Ballard wrote: About 11 months ago I posted an observation that searching the manual with the language

Re: [fw-general] Formatting localized date time wih Zend_Date

2010-05-14 Thread Nicolas Grevet
keyboards. We had to change Zend Framework's format for this too. Regards, -- Nicolas Grevet Саша Стаменковић wrote: Thanks man. I'll go with extending my own format HH:mm since %H.%M.%S is really silly format for time, especially when date have same format. Regards, Saša Stamenković

Re: [fw-general] admin generator / separate application units

2010-05-12 Thread Nicolas Grevet
of the work through the router and a few checks here and there. Regards, -- Nicolas Grevet Sergio Rinaudo wrote: Hi, from my point of view 'admin' is a module. In this discussion *http://zend-framework-community.634137.n4.nabble.com/ZF1-8-Switching-layouts-between-modules-td659665.html

Re: [fw-general] Re: Difference between days using zend

2010-03-25 Thread Nicolas Grevet
Please, read the documentation: http://framework.zend.com/manual/en/zend.date.constants.html He's saying that you're not even using the correct date format. nisanth wrote: No i only need to calculate the difference I have the Zend_Date object ..

Re: [fw-general] Removing of intersection table fields in findManyToManyRowset()

2010-03-03 Thread Nicolas Grevet
Most of us relied on this bug because it was there. It seemed pretty cool that the findManyToManyRowset() could return the intersecting fields without any other form of manual SQL or joins. It really looked like a feature since it was there prior to 1.8 or even 1.7. And I'm not sure the

Re: [fw-general] Removing of intersection table fields in findManyToManyRowset()

2010-03-02 Thread Nicolas Grevet
Seeing the lack of interest our problem seems to raise, I guess that either no one cares at all or no one ever used the intersecting fields on a many to many relationship with ZF (makes me wonder which one is the worst case scenario). Jurian Sluiman wrote: I came upon this issue as well. I

[fw-general] Removing of intersection table fields in findManyToManyRowset()

2010-02-24 Thread Nicolas Grevet
Hello, On the 19th of February, Ralph commited a modification of the Zend_Db_Table behavior. Seems like they arbitrary decided that Zend_Db_Table_Row::findManyToManyRowset() would not return the fields of the intersection table anymore. While I can understand why (name collision), our system

[fw-general] Is Zend_Validate_Int seriously broken with non-english locales or is it just me?

2010-02-23 Thread Nicolas Grevet
makes it work like a charm. So basically, you can't use integers in french. What are we supposed to do? I filed an issue there: http://framework.zend.com/issues/browse/ZF-9242 Regards, - Nicolas Grevet

Re: [fw-general] Is Zend_Validate_Int seriously broken with non-english locales or is it just me?

2010-02-23 Thread Nicolas Grevet
. The problem is more with the fact that you can't input either 8000 or 8 000. Just 8(\xA0)000. Regards, - Nicolas Grevet Hector Virgen wrote: I might be wrong, but I don't think a user-inputted string of 8[space]000 is considered an Integer. In order to use the Int validator, you'll need

Re: [fw-general] PDO or Mysqli?

2010-02-19 Thread Nicolas Grevet
I guess this was the interesting part: In terms of the general use cases [...] you will see no discernible difference. Regards, - Nicolas Саша Стаменковић wrote: So, which one is better in terms of performances? Regards, Saša Stamenković On Thu, Feb 18, 2010 at 7:37 PM, Ralph Schindler

Re: [fw-general] Easy way to page generation times

2010-02-19 Thread Nicolas Grevet
[...] but a simple timer could be build as a Zend_Controller_Plugin where in the routeStartup() you set a parameter to the value of microtime and then at the end of your layout, subtract the value from routeStartup() from the current value of microtime(). Yeah, except that the routeStartup() is

Re: [fw-general] Easy way to page generation times

2010-02-19 Thread Nicolas Grevet
By the way, some Apache configurations already include the REQUEST_MICROTIME parameter Errr... I mean, REQUEST_TIME. Regards, - Nicolas Nicolas Grevet wrote: [...] but a simple timer could be build as a Zend_Controller_Plugin where in the routeStartup() you set a parameter to the value

[fw-general] Zend_Currency broken or are we doing something wrong?

2010-02-15 Thread Nicolas Grevet
Hello, In our project, we're using Zend_Currency to handle prices, but so far, we've been unable to make it work. Even the simplest example from the documentation throws an error: This one works: new Zend_Currency( array('value' = 100) ); This one fails: new Zend_Currency(

Re: [fw-general] Zend_Currency broken or are we doing something wrong?

2010-02-15 Thread Nicolas Grevet
Ok, found the issue, there's a bug on line 103 of Zend_Currency. Filed an issue there: http://framework.zend.com/issues/browse/ZF-9181 - Nicolas Nicolas Grevet wrote: Hello, In our project, we're using Zend_Currency to handle prices, but so far, we've been unable to make it work. Even

Re: [fw-general] encoding problem in ajax request

2010-02-05 Thread Nicolas Grevet
If only the world was this beautiful, it would be great. When full UTF-8 support will be implemented in PHP and that more than a third of the language functions will supprot it, then we'll consider switching to UTF-8. The last project I had to develop with UTF-8, oh god... working with file

Re: [fw-general] encoding problem in ajax request

2010-02-04 Thread Nicolas Grevet
We have the same problem in french, we're using ISO/IEC 8859-15. By the way, I've yet to hear about a way to change string encoding in javascript. Dmitry Dulepov a écrit : Hi! On 4 Feb 2010, at 10:47, drm wrote: You should fix this on the JS side. The ajax post is apparently being encoded

Re: [fw-general] encoding problem in ajax request

2010-02-04 Thread Nicolas Grevet
Yeah, that's what we did. But it would be great if Zend_Json_Encoder could automate the process. Auto-encode in the encoder, auto-decode in the decoder. But well, there's much more important things to do for the moment. Dmitry Dulepov a écrit : Hi! On 4 Feb 2010, at 11:03, Nicolas Grevet

Re: [fw-general] Migration to 1.10.0 and setEncoding exception

2010-02-02 Thread Nicolas Grevet
Also, as far as I can remember, mb_list_encodings() is an horrible performance clogger. On my last project, it was accounted for more than 75% of the pages loading time. It might not have been used in the same context, though, but I sure hope you know what you're doing when implementing things

Re: [fw-general] Warning for your error controllers: new 1.10.0 exception: Zend_Controller_Plugin_ErrorHandler::EXCEPTION_NO_ROUTE

2010-02-01 Thread Nicolas Grevet
This is already covered here: http://framework.zend.com/manual/1.10/en/migration.110.html Cheers, -- Nicolas Colin Guthrie a écrit : Hi, Just a small word of warning for those users using the error controller to take appropriate action. Previously (1.9.7) either EXCEPTION_NO_CONTROLLER or

[fw-general] Re: [fw-mvc] Zend_Form decorators webinar tomorrow

2009-12-16 Thread Nicolas GREVET
You may need to reconsider using short.ie MDB2 Error: connect failed It might disappear when the US wake up, though. Regards, -- Nicolas Grevet Matthew Weier O'Phinney a écrit : Hey, all -- I'm giving a webinar on Zend_Form decorators tomorrow at 12pm EST: http://short.ie/62entq

[fw-general] Failed commit on Zend_Translate

2009-12-07 Thread Nicolas GREVET
Hi everyone, I guess something went wrong during the last commit of 'Thomas' (number 19457) on Zend_Translate. The Zend/Translate/Adapter/Xliff was commited with a var_dump($this-_data) on line 92. Could someone tell him? Regards, -- Nicolas Grevet

Re: [fw-general] Failed commit on Zend_Translate

2009-12-07 Thread Nicolas GREVET
Hmm, well, I'm not part of the project, I'm just using the trunk in my project. I highly doubt I can anonymously commit on the ZF repository, or am I wrong? -- Nicolas Grevet Bart McLeod a écrit : Nicolas GREVET schreef: Hi everyone, I guess something went wrong during the last commit