Re: [fw-general] Zend Server & ZF

2009-02-18 Thread Lucas Corbeaux
Really, really interesting... Will Zend Server (not CE) replace the actual Zend Platform with his caching and monitoring features? Lucas Wil Sinclair a écrit : I’m sure that many of you have heard the news that Zend made its next-generation application server available for public beta toda

[fw-general] Zend Server & ZF

2009-02-18 Thread Wil Sinclair
I'm sure that many of you have heard the news that Zend made its next-generation application server available for public beta today: http://devzone.zend.com/article/4272-Zend-announces-public-beta-of-a-new -product-Zend-Server. Many people have been asking how this will affect Zend Framework us

Re: [fw-general] Re: [fw-db] Subselects using Zend_Db_Select

2009-02-18 Thread Jason Webster
No. The only thing Zend_Db_Select that is RDBMS specific is use Zend_Db_Adapter_* quote/quoteInto/quoteIdentifier methods. On 18/02/2009 1:58 PM, Ben Scholzen 'DASPRiD' wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Actually, when you want to switch the DB engine, it does matter. ...

Re: [fw-general] User uploads file bigger than what's allowed in php.ini, can it be caught?

2009-02-18 Thread bytte
Hmm... you seem to be right. It looks as if there's no file submitted. This is what is in the $_FILES array on a successful file upload (file less than php.ini's max file-size): Array ( [file1] => Array ( [name] => testfile.pdf [type] => application/pdf [tmp_name] => /private/var/tmp/phpPuRUtw [e

Re: [fw-general] Re: [fw-db] Subselects using Zend_Db_Select

2009-02-18 Thread Ben Scholzen 'DASPRiD'
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 And answer to the question is: - --- $subSelectDraft = $db->select() ->from('articles', array('COUNT(*)') ->where('status = 0

Re: [fw-general] Re: [fw-db] Subselects using Zend_Db_Select

2009-02-18 Thread Ben Scholzen 'DASPRiD'
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Actually, when you want to switch the DB engine, it does matter. ... : ___ _ ___ ___ ___ _ ___: : | \ /_\ / __| _ \ _ (_) \ : : | |) / _ \\__ \ _/ / | |) | : : |___/_/:\_\___/_| |_|_\_|___/ : :..

[fw-general] Insert using Zend DB and an adapter

2009-02-18 Thread prickett
I'm trying to insert a record into a MySql table that has no key. I'm using an adapter and the following code: Zend_Registry::get( "dbAdapter" )->insert( "USERS" , array( "username" => $this->username , "password" => $this->password ) ); This, however, results in a key violation. I see that w

[fw-general] Re: [fw-db] Subselects using Zend_Db_Select

2009-02-18 Thread Jason Webster
Not that I'm aware of, but Why do you have to use Zend_Db_Select to do this?? If it's a static query like that, that isn't built procedurally, there's nothing wrong with just using the SQL statement. On 18/02/2009 10:31 AM, Henry Umansky wrote: Is there an easy way to run the following qu

Re: [fw-general] Zend_Form and elements chain validation

2009-02-18 Thread Thomas VEQUAUD
On Wed, Feb 18, 2009 at 6:24 PM, Matthew Weier O'Phinney wrote: > -- Thomas VEQUAUD wrote > (on Wednesday, 18 February 2009, 05:57 PM +0100): >> Advices, clues or just URLs appreciated! > > Look in the Zend_Form_Element validators documentation, and search for > the phrase "validator context". :)

[fw-general] Zend_Form viewscript helper, subforms & dojo

2009-02-18 Thread lightflowmark
Hi, I'm trying to use Zend_Dojo_Form to create a form where users can click a link next to each element to e.g. verify that element against the database in some way. So next to every element, I want a link saying 'verify', with an onclick handler to do some XHR stuff. Also before each element I

Re: [fw-general] Zend_Form and elements chain validation

2009-02-18 Thread Matthew Weier O'Phinney
-- Thomas VEQUAUD wrote (on Wednesday, 18 February 2009, 05:57 PM +0100): > Another question about Zend_Form! > I display a table of 11 rows and 3 columns... So 10 rows over 2 > columns with the same form elements : a textarea element in the second > column and a select element in the third. Here

Re: [fw-general] Calc difference of 2 dates

2009-02-18 Thread A.J. Brown
Additionally, there's ->isEarlier() and ->isLater, which will tell you if the date object passed in is earlier than the calling date object or later respectively. On Wed, Feb 18, 2009 at 9:25 AM, Thomas VEQUAUD wrote: > > http://framework.zend.com/manual/en/zend.date.basic.html#zend.date.simple.

[fw-general] Zend_Form and elements chain validation

2009-02-18 Thread Thomas VEQUAUD
Hi again, Another question about Zend_Form! I display a table of 11 rows and 3 columns... So 10 rows over 2 columns with the same form elements : a textarea element in the second column and a select element in the third. Here is the point: the select element of a specific row is only required when

Re: [fw-general] Base Controller convienience methods

2009-02-18 Thread Matthew Weier O'Phinney
-- Marko Korhonen wrote (on Wednesday, 18 February 2009, 06:52 AM -0800): > > Thanks for the great feedback! > > I already converted many of my methods to actions helpers or moved them to > controller plugins. > > When I was exploring documentation and code I had a following idea: > > In Zend_

Re: [fw-general] Calc difference of 2 dates

2009-02-18 Thread Thomas VEQUAUD
http://framework.zend.com/manual/en/zend.date.basic.html#zend.date.simple.functions.add $date = new Zend_Date(); $date->sub(); On Wed, Feb 18, 2009 at 4:15 PM, Stefan Sturm wrote: > > Hello, > > I need to calc the difference of two dates? Is this possible using Zend_Date? > I can't find anythi

[fw-general] Question relative to Zend Framework and SCA technology

2009-02-18 Thread Martin Meyers
Dear Zend Framework representatives and developers: I've been studying your Zend Framework for upcoming project, and in my honest opinion it's the best PHP framework available today; Congratulation for that! Very good job! Currently I'm wondering if and how it can be integrated in existing OSOA

[fw-general] Calc difference of 2 dates

2009-02-18 Thread Stefan Sturm
Hello, I need to calc the difference of two dates? Is this possible using Zend_Date? I can't find anything about this... Thanks, Stefan Sturm

Re: [fw-general] Base Controller convienience methods

2009-02-18 Thread Ben Scholzen 'DASPRiD'
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Just to add: any of this API changes would be a BC break. If you can access the URL view helper as $this->url() or $this->urlHelper(), one could actually have one of those method-names already used in his controller. Or am I too strict with BC here? M

Re: [fw-general] Base Controller convienience methods

2009-02-18 Thread Ben Scholzen 'DASPRiD'
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Or, as actions are suffixed with Action, helpers could thus be suffixed with Helper. So you could access the URL-Helper like this: $this->urlHelper(...); Just random thoughts. ... : ___ _ ___ ___ ___ _ ___: :

Re: [fw-general] Base Controller convienience methods

2009-02-18 Thread Marko Korhonen
Thanks for the great feedback! I already converted many of my methods to actions helpers or moved them to controller plugins. When I was exploring documentation and code I had a following idea: In Zend_Controller_Action there is __call method: public function __call($methodName, $args) {

Re: [fw-general] subtract two dates and get result in hours/minutes/seconds

2009-02-18 Thread Thomas Weidner
Have you tried to substract one date from the other like described in the manual ? $date2->sub($date1); Greetings Thomas Weidner, I18N Team Leader, Zend Framework http://www.thomasweidner.com - Original Message - From: "debussy007" To: Sent: Wednesday, February 18, 2009 2:57 PM Sub

Re: [fw-general] User uploads file bigger than what's allowed in php.ini, can it be caught?

2009-02-18 Thread Thomas Weidner
That's correct. MAX_FILE_SIZE is a hidden form field. It would be interesting to see what your server saves as data to the $_FILES array. Normally there should be an error (3 or 4) but it seems that in your case there is no file submitted in this case. Greetings Thomas Weidner, I18N Team Lead

[fw-general] subtract two dates and get result in hours/minutes/seconds

2009-02-18 Thread debussy007
Hi, How can I subtract a date from another date and get the result in hours, minutes and seconds ? e.g. 11 feb 09 01:00:00 11 feb 09 01:02:01 result "0h2m1s" Thank you fro any help with this ! -- View this message in context: http://www.nabble.com/subtract-two-dates-and-get-result-in-hours-m

[fw-general] Re: SECURITY ADVISORY

2009-02-18 Thread Colin Guthrie
'Twas brillig, and Matthew Weier O'Phinney at 18/02/09 13:07 did gyre and gimble: -- Colin Guthrie wrote (on Wednesday, 18 February 2009, 09:09 AM +): 'Twas brillig, and Wil Sinclair at 18/02/09 03:51 did gyre and gimble: The Zend Framework team has been notified of a potential Local File

Re: [fw-general] Zend_Paginator's totalItemCount property question?

2009-02-18 Thread Ben Scholzen 'DASPRiD'
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 It's: $paginator->getTotalItemCount(); ... : ___ _ ___ ___ ___ _ ___: : | \ /_\ / __| _ \ _ (_) \ : : | |) / _ \\__ \ _/ / | |) | : : |___/_/:\_\___/_| |_|_\_|___/ : ::..

[fw-general] Zend_Paginator's totalItemCount property question?

2009-02-18 Thread Deepak Shrestha
Hi all, When trying to access the totalItemCount property of Paginator, I am getting this error: == Notice: Undefined property: Zend_Paginator::$totalItemCount == Is this bug? Problem elaboration === before using paginator, my following

Re: [fw-general] Re: SECURITY ADVISORY

2009-02-18 Thread Matthew Weier O'Phinney
-- Colin Guthrie wrote (on Wednesday, 18 February 2009, 09:09 AM +): > 'Twas brillig, and Wil Sinclair at 18/02/09 03:51 did gyre and gimble: >> The Zend Framework team has been notified of a potential Local File >> Inclusion (LFI) attack vector in Zend_View's render() method. To >> address

[fw-general] Re: What is the fourth parameter of pagination control?

2009-02-18 Thread Deepak Shrestha
On Tue, Feb 17, 2009 at 2:31 PM, Deepak Shrestha wrote: > Hi, > > Although related to my previous post on paginator, this is separate > from what is being discussed before. > > Documentation on Zend_Paginator > http://framework.zend.com/manual/en/zend.paginator.usage.html (In the > last para of 36

[fw-general] Re: Zend_Form subforms and getElement

2009-02-18 Thread Thomas VEQUAUD
I fixed my issue with a method inside my own form class : public function setSubFormNotations(Zend_Form_SubForm $subForm) { $subForm->setIsArray(true); $subForm->setElementsBelongTo($subForm->getName()); return ($this); } I still keep an eye on this thread caus

[fw-general] Zend_Dojo_View_Helper_Form - open-form tag only?

2009-02-18 Thread Mario Knippfeld
Hi, im trying to get the open-Form Tag with the Zend_Dojo_View_Helper_Form, but it is always returning the closing form tag too. I guess the lines 73 - 75 should be deleted: if (false === $content) { $content = ''; } so that the $content var will be directly given to the Z

[fw-general] Re: SECURITY ADVISORY

2009-02-18 Thread Colin Guthrie
'Twas brillig, and Wil Sinclair at 18/02/09 03:51 did gyre and gimble: The Zend Framework team has been notified of a potential Local File Inclusion (LFI) attack vector in Zend_View's render() method. To address the issue, as of the 1.7.5 release the render() method no longer accepts paths that

[fw-general] Zend_Form - select - option bgcolour

2009-02-18 Thread PHPScriptor
Hello there, I think it's not possible to do with Zend Forms, but can anyone give me some advice how I could do it the best way. Something like: making the Zend Form and output it step by step in the view? I want to set every option in my select a different background-color...