Re: [fw-general] File Element problem - getValue() returns null, but getFileName() returns full path and file?

2010-02-11 Thread Thomas Weidner
Look if the value is disabled (isValueDisabled()). Per default is could be disabled for security reasons. And getValue() returns null when there is any error at validation or filtering on that file element. Therefor use always isValid(). Greetings Thomas Weidner, I18N Team Leader, Zend

Re: [fw-general] Alnum validation fails

2010-02-11 Thread Thomas Weidner
Looks like you're using different pcre settings. See if unicode is enabled or not. Greetings Thomas Weidner, I18N Team Leader, Zend Framework http://www.thomasweidner.com - Original Message - From: dmitrybelyakov shiftplatf...@gmail.com To: fw-general@lists.zend.com Sent: Thursday,

Re: [fw-general] File Element problem - getValue() returns null, but getFileName() returns full path and file?

2010-02-11 Thread Cameron
I hadn't ever turned on ValueDisabled, but even so I just set it to false, $element-setValueDisabled(false). And the code comes directly after an isValid. In its original context... if (!$this-getForm()-isValid ( $data )) { throw new Exception ( 'Form data invalid!' ); } $values =

Re: [fw-general] File Element problem - getValue() returns null, but getFileName() returns full path and file?

2010-02-11 Thread Thomas Weidner
Question: You have already received the file by calling getValues() on the form. Why do you want to receive the file once again? A received file can not be received once again (not with 1.9.5). Greetings Thomas Weidner, I18N Team Leader, Zend Framework http://www.thomasweidner.com -

Re: [fw-general] any plan to change the dojo ComboBox behaviour?

2010-02-11 Thread Guillaume ORIOL
Thank you for having clarified this point. -- Guillaume ORIOLgor...@technema.fr wrote (on Wednesday, 10 February 2010, 12:49 PM +0100): Searching for a solution to a dojo ComboBox issue, I've found an old ticket (http://n4.nabble.com/Zend-Dojo-Comboboxes-and-form-populate-td648990.html)

Re: [fw-general] File Element problem - getValue() returns null, but getFileName() returns full path and file?

2010-02-11 Thread Cameron
I'm trying to get the filename. If you var_dump on $values below, it is null. I'm only using the second call to getValue() to show how it isn't working. I believe the standard mode of operation is to go like this: if (! $this-getForm()-isValid ( $data )) { return false; } $values =

Re: [fw-general] File Element problem - getValue() returns null, but getFileName() returns full path and file?

2010-02-11 Thread Cameron
oops - to clarify, if you var_dump on $values, $values['image'] is null, the rest of the array is fine, and what you would expect. On Thu, Feb 11, 2010 at 5:19 PM, Cameron themsel...@gmail.com wrote: I'm trying to get the filename. If you var_dump on $values below, it is null. I'm only using

Re: [fw-general] File Element problem - getValue() returns null, but getFileName() returns full path and file?

2010-02-11 Thread Thomas Weidner
getValue() returns null when there is any error. So the question is which error is returned. When you say that isValid() returns not false, then the question is why receive() returns false. Look at it's error message to see details. Greetings Thomas Weidner, I18N Team Leader, Zend Framework

Re: [fw-general] File Element problem - getValue() returns null, but getFileName() returns full path and file?

2010-02-11 Thread Cameron
var_dump($this-getForm()-image-receive())) returns bool(false) - however, the file is uploaded just fine, it appears in the destination directory without any issues. also, calling $this-getForm()-image-isReceived() after calling receive() returns true! so in reference to your suggestion below,

Re: [fw-general] Zend_Mail exhaust memory reading multipart mail with large attachment

2010-02-11 Thread Michael Kliewe
Hello Jens, exactly, I extended both Zend_Mail_Storage_Imap and Zend_Mail_Protocol_Imap because I need many functions that both classes don't provide, for example I work only with unique ids, not sequence numbers. So I had to change many of the functions. For example it is also not

[fw-general] Zend dojo form bug

2010-02-11 Thread Zladivliba Voskuy
Hi everyone ! I've had a problem with a dojo form, using dojo's SimpleTextArea. Actually the bug is I only get a textarea, but not the benefits of the SimpleTextArea in dojo (the box auto-grows when users types return characters) ; The thing I don't understand is than when I use a dojo simple

[fw-general] Scrum app (using ZF)?

2010-02-11 Thread robert mena
Hi, I've searched the list and found a post of a scrum app developed (or that was being developed) using ZF (by the ZF team if I recall correctly) but could not find any followup. Does anybody know the status of that? Regards. OT. I am trying to evaluate that methodology and if you have any

Re: [fw-general] Scrum app (using ZF)?

2010-02-11 Thread Matthew Weier O'Phinney
-- robert mena robert.m...@gmail.com wrote (on Thursday, 11 February 2010, 10:38 AM -0400): I've searched the list and found a post of a scrum app developed (or that was being developed) using ZF (by the ZF team if I recall correctly) but could not find any followup. Does anybody know the

[fw-general] Re: Zend dojo form bug

2010-02-11 Thread chris.barrett
Hi Zladivliba, What behavior are you expecting? When I create a simpletextarea in both fashions they behave the same, and when I create a textarea in both fashions they both auto-expand as you type and hit enter. You can also attempt to use the view helper in your view script: echo

[fw-general] Blank documentation pages

2010-02-11 Thread Mark Steudel
I'm not sure if I should report this to a bug tracker somewhere, but I'm seeing mostly blank pages in the documentation http://framework.zend.com/manual/en/learning.quickstart.intro.html http://framework.zend.com/manual/en/ Mark -- - Mark Steudel P:

[fw-general] Zend test with db adapter fails to connect

2010-02-11 Thread Ron Dyck
After reading various articles on TDD and Zend_Test I've decided to integrate them in my development cycle.. Things were quite successful until I required the db adapter. I'm able to access all my resources successfully but appears as though I cannot connect to the db. I created a zend test that

Re: [fw-general] Zend test with db adapter fails to connect

2010-02-11 Thread Hector Virgen
I ran into similar problems with PHPUnit on my Mac running Zend Server CE. My problem was that PHPUnit was using the wrong PHP bin. I edited the file /usr/local/bin/phpunit and changed the path to the php bin at the top to read: #!/usr/local/zend/bin/php I hope this helps. -- Hector On Thu,

Re: [fw-general] Zend test with db adapter fails to connect

2010-02-11 Thread Ron Dyck
On Thu, Feb 11, 2010 at 2:41 PM, Hector Virgen djvir...@gmail.com wrote: I ran into similar problems with PHPUnit on my Mac running Zend Server CE. My problem was that PHPUnit was using the wrong PHP bin. I edited the file /usr/local/bin/phpunit and changed the path to the php bin at the top

[fw-general] validator Db_NoRecordExists -- support for multifield unique indices?

2010-02-11 Thread David Mintz
I've just written my own extension of Zend_Validate_Db_Abstract that supports multiple fields to query against, for the case where your table has a multi-field unique index. I wonder if there's any demand for this feature, it might be a cool thing for this relative novice ZFer to contribute,

[fw-general] Migrate old project for use with Zend_Tool?

2010-02-11 Thread Maghiel Dijksman
Hello all, Is it possible to migrate an old project so it can be used with zend_tool (zf command)? Regards, Maghiel

Re: [fw-general] validator Db_NoRecordExists -- support for multifield unique indices?

2010-02-11 Thread Саша Стаменковић
Can we see the source? Regards, Saša Stamenković On Thu, Feb 11, 2010 at 9:43 PM, David Mintz da...@davidmintz.org wrote: I've just written my own extension of Zend_Validate_Db_Abstract that supports multiple fields to query against, for the case where your table has a multi-field unique

[fw-general] Re: ComboBox/FilteringSelect confusion

2010-02-11 Thread chris.barrett
Update: With help from meti_alb on the zftalk irc channel I discovered where my problem was. Basically you have to have a data column named name in your json string if you want to use the dojo combobox/filtering select view helper with json data. If you have the name identifier, then it doesn't

Re: [fw-general] Zend test with db adapter fails to connect

2010-02-11 Thread Ron Dyck
For anyone with a similar problem, Hectors suggestion was accurate: file /usr/local/bin/phpunit and changed the path to the php bin at the top to read: #!/usr/local/zend/bin/php I also ran into a couple other issues of my ENV var and using DYLD_LIBRARY_PATH not LD_LIBRARY_PATH and also some