Re: [fw-general] Unusual bug introduced with 1.7.1 in Zend_File.

2008-12-16 Thread Thomas Weidner
Hy Cameron, Why should the first catch, catch anything when there is a failure ? According to manual, receive() returns a false on failure, not an exception. Also you are calling getFileName in any case, regardless if the form is valid or not. Greetings Thomas Weidner, I18N Team Leader, Zend

Re: [fw-general] Unusual bug introduced with 1.7.1 in Zend_File.

2008-12-16 Thread Thomas Weidner
Cameron, when you have unexpected exceptions somewhere in your code it's always usefull to get the whole exception and not only the rethrown content. This would be really helpfull, not only for ZF but for every generic problem where exceptions are thrown. Greetings Thomas Weidner, I18N Team

[fw-general] [Zend_Mail] How to get an attached files ?

2008-12-16 Thread Grooters Erwan
Hi, I'm currently working on a script to take mail from a pop3 server. Everything works correctly excepted to get back an attached file. In fact I can't find the name of attached file. this is the code I have (directly inspired from doc): echo $mail->countMessages() . " messages found\n";

Re: [fw-general] Re: enabling dojo in remote loading

2008-12-16 Thread Matthew Weier O'Phinney
-- Superbiji ยป wrote (on Tuesday, 16 December 2008, 01:58 PM +0700): > Hmmm it works by adding these: > > Zend_Dojo_View_Helper_Dojo::setUseDeclarative(); > > and > > $this->dojo()->setDjConfigOption('parseOnLoad',true) > > I think setusedeclarative should be default option for zend/dojo

Re: [fw-general] Re: Quick question re an XSLT based Zend_View

2008-12-16 Thread Matthew Ratzloff
FWIW, I'd like to see something like this. -Matt On Tue, Dec 16, 2008 at 2:35 AM, Colin Guthrie wrote: > 'Twas brillig, and Colin Guthrie at 11/12/08 11:54 did gyre and gimble: > >> Hi, >> >> I'm in the position where I'd like to use XSLT scripts to render parts of >> my output (probably partial

Re: [fw-general] Unusual bug introduced with 1.7.1 in Zend_File.

2008-12-16 Thread Cameron
Yeah ok, so that's all a bit messy/broken, but I've cleaned it up and it's still doing the same thing: here's the cleaned up code in a pastebin: http://pastebin.com/m5bab1a44 the output is: Array ( [0] => bbbThe given destination is no directory or does not exist ) To test and make sure, i rev

[fw-general] Re: Quick question re an XSLT based Zend_View

2008-12-16 Thread Colin Guthrie
'Twas brillig, and Matthew Ratzloff at 16/12/08 16:47 did gyre and gimble: FWIW, I'd like to see something like this. I had another message off list with a "that would be interesting" type response, so I'll see what i can knock up over the holidays (assuming my workload is eased somewhat!)

Re: [fw-general] Merge Zend_Forms

2008-12-16 Thread Simon Corless
Matthew Weier O'Phinney-3 wrote: > > Two words: sub forms. addSubForm() takes *either* a Zend_Form or > Zend_Form_SubForm. :) instance.. > Of course simple now! Out of interest when you combine the form in the model how to you handle feedback to the user / catching of a result in the applicat

[fw-general] Re: Quick question re an XSLT based Zend_View

2008-12-16 Thread Colin Guthrie
'Twas brillig, and Colin Guthrie at 11/12/08 11:54 did gyre and gimble: Hi, I'm in the position where I'd like to use XSLT scripts to render parts of my output (probably partials). In order to achieve this, I think it makes sense to create a Zend_View_Xslt class that implements Zend_View_Int

[fw-general] Zend_Form_Element_File and custom error messages

2008-12-16 Thread buttie
Hi All I have got used to using the custom error messages with form elements e.g. $this->addElement('text', 'name', array('label' => 'Name', 'errormessages' => array('Please make an entry for name'),

Re: [fw-general] Why isn't this working?

2008-12-16 Thread Mon Zafra
The base URL is the part that sits between the host name and index.php in your URL. If your page is at http://localhost/controller/action, it gets rewritten into http://localhost/index.php/controller/action by the webserver before being passed to PHP, so your base URL is rightfully blank. If you're

Re: [fw-general] How to set name="" on form

2008-12-16 Thread maxarbos
Have you gotten any answers on this? I am having the same issue and cannot get the name attribute to be set. I am using 1.5 of the framework. notmessenger wrote: > > I know I've seen this answer somewhere before on this list, but I cannot > find it anywhere (archives or my own copies of the em

Re: [fw-general] How to set name="" on form

2008-12-16 Thread Cameron
$form->addAttribs(array('name' => 'formname')); ? On Wed, Dec 17, 2008 at 9:24 AM, maxarbos wrote: > > Have you gotten any answers on this? > I am having the same issue and cannot get the name attribute to be set. > > I am using 1.5 of the framework. > > > notmessenger wrote: > > > > I know I've

Re: [fw-general] How to set name="" on form

2008-12-16 Thread maxarbos
Thanks, but unfortunately no. That changes the name of the ID to what i want my form name to be, but still does not set a 'name' attribute. Thank you. Themselves wrote: > > $form->addAttribs(array('name' => 'formname')); ? > > On Wed, Dec 17, 2008 at 9:24 AM, maxarbos wrote: > >> >> Have yo

Re: [fw-general] Unusual bug introduced with 1.7.1 in Zend_File.

2008-12-16 Thread Cameron
here's the full $e. http://pastebin.com/m5d442e15 the line in my code, line 83, that is definitely where it is calling $adapter->getFileName(). On Tue, Dec 16, 2008 at 7:01 PM, Thomas Weidner wrote: > Cameron, > > when you have unexpected exceptions somewhere in your code it's always > usefull

Re: [fw-general] How to set name="" on form

2008-12-16 Thread Matthew Weier O'Phinney
-- maxarbos wrote (on Tuesday, 16 December 2008, 04:37 PM -0800): > > Thanks, but unfortunately no. > That changes the name of the ID to what i want my form name to be, but still > does not set a 'name' attribute. The "name" attribute is deprecated in HTML 4.01, and invalid with XHTML 1.0. You c

Re: [fw-general] Unusual bug introduced with 1.7.1 in Zend_File.

2008-12-16 Thread Thomas Weidner
Cameron, to go further with debugging you can see that your exception is called in the file Abstract on line 948. Now simply output the destination directory on line 947 so you can see which directory you set. Then check if the directory which is set there * does exist * has write access Do