Re: [fw-general] How to get the number of day between 2 date

2009-08-12 Thread Mathieu Suen
d Framework http://www.thomasweidner.com - Original Message ----- From: "Mathieu Suen" To: Sent: Wednesday, August 12, 2009 2:11 PM Subject: [fw-general] How to get the number of day between 2 date Hi, Using Zend_Date how could we get the difference between 2 date. Let's sa

Re: [fw-general] How to get the number of day between 2 date

2009-08-12 Thread Mathieu Suen
27;); //03 should be 00 Best Regards PS. Could the mailing list manager fix the reply-to header so that it reply to the mailing-list insthead of the original sender. Thanks Regards, Saša Stamenković On Wed, Aug 12, 2009 at 3:08 PM, Mathieu Suen mailto:mathieu.s...@easyflirt.com>> wrote:

Re: [fw-general] How to get the number of day between 2 date

2009-08-12 Thread Mathieu Suen
http://www.zfsnippets.com/snippets/view/id/39/time-measurement-with-zendmeasuretime Regards, Saša Stamenković On Wed, Aug 12, 2009 at 2:11 PM, Mathieu Suen mailto:mathieu.s...@easyflirt.com>> wrote: Hi, Using Zend_Date how could we get the difference between 2 date. Let's say I want the number of day? Thanks -- -- Mathieu Suen -- -- -- Mathieu Suen --

[fw-general] How to get the number of day between 2 date

2009-08-12 Thread Mathieu Suen
Hi, Using Zend_Date how could we get the difference between 2 date. Let's say I want the number of day? Thanks -- -- Mathieu Suen --

Re: [fw-general] [Zend_Cache_Frontend_Page] Diferrent lifetime for separate pages

2009-08-12 Thread Mathieu Suen
clumsy*. I would expected some support in Zend_Cache_Frontend_Page. When somebody have experience with this or somebody have solved or resolved this problem, I would be very grateful for any advice. Thank you for any suggestion. ---- View this message in context: [Zend_Cache_Frontend_Page] Diferrent lifetime for separate pages <http://www.nabble.com/-Zend_Cache_Frontend_Page--Diferrent-lifetime-for-separate-pages-tp24934672p24934672.html> Sent from the Zend Framework mailing list archive <http://www.nabble.com/Zend-Framework-f15440.html> at Nabble.com. -- -- Mathieu Suen --

Re: [fw-general] design patterns / best practices for big site

2009-07-27 Thread Mathieu Suen
Anders Gunnarsson a écrit : > - Can I make a view helper or a view method that inherits $this ? (can be good for recurse-rendering trees etc) What do you mean by $this? Inheritance work for class not for object. > > > regards > Anders -- -- Mathieu Suen --

Re: [fw-general] Models as Singletons

2009-07-21 Thread Mathieu Suen
h comments. I tried to avoid having too many instances of this model class for vain. Any comments or questions ? -- Matthew Weier O'Phinney Project Lead| matt...@zend.com Zend Framework | http://framework.zend.com/ -- -- Mathieu Suen --

[fw-general] Changing viewscript

2009-07-21 Thread Mathieu Suen
Hi, A very simple question. How can I share view script (*.phtml) among sevral action? Thanks -- -- Mathieu Suen --

[Fwd: Re: [fw-general] Zend_Form_Element::getAttribs taking time]

2009-07-21 Thread Mathieu Suen
-- -- Mathieu Suen -- --- Begin Message --- Matthew Weier O'Phinney a écrit : -- Mathieu Suen wrote (on Tuesday, 21 July 2009, 10:26 AM +0200): Mathieu Suen a écrit : Hi, I am doing dome benchmark and I see the method Zend_Form_Element::getAttribs is taking a lot of time. By looki

Re: [fw-general] Zend_Form_Element::getAttribs taking time

2009-07-21 Thread Mathieu Suen
Mathieu Suen a écrit : Hi, I am doing dome benchmark and I see the method Zend_Form_Element::getAttribs is taking a lot of time. By looking of the code it seems that the get_object_vars consum a lot of time. And since there is 25 inst var that are protected/private it don't return a l

[fw-general] Zend_Form_Element::getAttribs taking time

2009-07-20 Thread Mathieu Suen
What do you think? Thanks -- -- Mathieu Suen --

[fw-general] About HtmlTag decorator

2009-07-20 Thread Mathieu Suen
Hi, I am wondering why in Zend_Form_Decorator_HtmlTag::render there is some removeOption call near line 179 in the 1.8.4 ZF: $this->removeOption('noAttribs'); $this->removeOption('openOnly'); $this->removeOption('closeOnly'); Thanks -- -- Mathieu Suen --

[fw-general] View in the ViewScript decorator

2009-07-17 Thread Mathieu Suen
7;, array('viewScript' => 'demogForm.phtml'; ___ I have inspected the $this object in the view but it seems that there is no property. Thanks - Mathieu Suen

Re: [fw-general] Zend_Form_Decorator_FormElements::render() useless test

2009-07-16 Thread Mathieu Suen
Ok I get it nvm. Mathieu Suen a écrit : Hi, In the method Zend_Form_Decorator_FormElements::render() there is some useless test: _ ... if ((!$form instanceof Zend_Form) && (!$form instanceof Zend_Form_DisplayGroup)) { return $content; } $belongsTo

[fw-general] Zend_Form_Decorator_FormElements::render() useless test

2009-07-16 Thread Mathieu Suen
I don't unsederstand why the "($form instanceof Zend_Form)"? Can it be removed? Thanks - Mathieu Suen

[fw-general] Instance var bug

2009-07-16 Thread Mathieu Suen
function __set($columnName, $value) { echo 'New value : ' . $value . ' for '. $columnName; } } new A(); __ This is really not right! '=' have different semantic depending on the situation. huh! huh! Cheers - Mathieu Suen