Re: [fw-general] No DT tag for label decorator

2008-06-03 Thread Matthew Weier O'Phinney
-- OakBehringer [EMAIL PROTECTED] wrote (on Monday, 02 June 2008, 09:50 PM -0700): Do I have to write a replacement for Zend_Form_Decorator_Label to have it wrapped in NO tag? When doing any of these... $someElement-getDecorator('Zend_Form_Decorator_Label')-setTag('');

Re: [fw-general] No DT tag for label decorator

2008-06-03 Thread OakBehringer
Thank you for your prompt response, that worked swimmingly. Matthew Weier O'Phinney-3 wrote: Actually, by default, the Label decorator does not use a tag. However, if you are using the default decorators, it is configured to use one. There is a bug in the setTag() logic, in that if an

[fw-general] Generating forms from models

2008-06-03 Thread Jani Hartikainen
I've recently been dabbling with automatically generating Zend_Form forms based on model classes generated by the Doctrine ORM library. I thought that maybe I should announce the form generator class I've written here as well, as I was also thinking about making a ZF proposal out of it.

[fw-general] Re: Pass an array into Zend_Config_Xml containingall options for FormSelect

2008-06-03 Thread Jonathan
Thank you for the quick response The only problem is that these options are being pulled from a database. (They are makes of vehicles, TOYO, FORD, DODG, etc. etc.), and there are hundreds of models. So basically, I make my database call to get the Makes and Models of vehicles, but I need

Re: [fw-general] Re: Pass an array into Zend_Config_Xml containingall options for FormSelect

2008-06-03 Thread Matthew Weier O'Phinney
-- Jonathan [EMAIL PROTECTED] wrote (on Tuesday, 03 June 2008, 06:53 AM -0400): Thank you for the quick response The only problem is that these options are being pulled from a database. (They are makes of vehicles, TOYO, FORD, DODG, etc. etc.), and there are hundreds of models. So

Re: [fw-general] Zend_mail debug

2008-06-03 Thread Anders Gunnarsson
I'm using an external SMTP server (from my ISP, smtp.bredband.net), so I can't check any logs. Is it possible to debug on that? Ben Scholzen 'DASPRiD' wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 If you use the default adapter (nothing set), then PHP's mail() function is used, which

Re: [fw-general] Zend_mail debug

2008-06-03 Thread Simon Mundy
Certainly is! If you're using Zend_Mail_Transport_Smtp, you can do the following:- $tr = new Zend_Mail_Transport_Smtp('your.server.com', $options); // see example at http://framework.zend.com/manual/en/zend.mail.smtp-authentication.html $mail = new Zend_Mail(); // Populate $mail with

Re: [fw-general] Using FlashMessenger to display a message when there was an error processing a form

2008-06-03 Thread Vincent
On 6/3/08, Bart McLeod [EMAIL PROTECTED] wrote: If you submit the form and validate it, your post data will still be in the form, while the page has been refreshed (there has been a round trip to the server upon form submission). I did never use flashmessenger, but I do not see why it would

Re: [fw-general] Using FlashMessenger to display a message when there was an error processing a form

2008-06-03 Thread Jake McGraw
FlashMessenger is meant for displaying messages only after receiving a second request, like a redirect: FIRST REQUEST Client to Server - POST form values Server - Process form values Server - Form values will cause a redirect, record all messages FlashMessenger Server to Client - Send redirect

Re: [fw-general] Re: Using FlashMessenger to display a message when there was an error processing a form

2008-06-03 Thread Jake McGraw
My goal with this helper was to be able to leverage a similar interface to FlashMessenger for a generic message storage that would persist messages across redirects _and_ make them available if a redirect did _not_ occur. This is a solution we came up with at company, I'd highly suggest

Re: [fw-general] Re: Using FlashMessenger to display a message when there was an error processing a form

2008-06-03 Thread Vincent
On 6/3/08, Jake McGraw [EMAIL PROTECTED] wrote: My goal with this helper was to be able to leverage a similar interface to FlashMessenger for a generic message storage that would persist messages across redirects _and_ make them available if a redirect did _not_ occur. This is a

Re: [fw-general] Using FlashMessenger to display a message when there was an error processing a form

2008-06-03 Thread Bart McLeod
Vincent schreef: On 6/3/08, *Bart McLeod* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi Vincent, Why not redisplay the form if you want to keep the post data? I suppose some action will be needed from the part of the user if something went wrong while processing

Re: [fw-general] Using FlashMessenger to display a message when there was an error processing a form

2008-06-03 Thread Vincent
On 6/3/08, Jeffrey Sambells [EMAIL PROTECTED] wrote: Wouldn't it be better to provide a method to retrieve the messages regardless of which page load it is in so that the flashMessanger could be the generic message container for either case? Exactly! However, while I've read through the

Re: [fw-general] Using FlashMessenger to display a message when there was an error processing a form

2008-06-03 Thread Jeffrey Sambells
Wouldn't it be better to provide a method to retrieve the messages regardless of which page load it is in so that the flashMessanger could be the generic message container for either case? For example, if I do: $this-_flashMessenger-addMessage('My Message'); $messages =

Re: [fw-general] Using FlashMessenger to display a message when there was an error processing a form

2008-06-03 Thread Vincent
On 6/3/08, Jake McGraw [EMAIL PROTECTED] wrote: FlashMessenger is meant for displaying messages only after receiving a second request, like a redirect: Is there a specific reason for this? Are there any plans to implement displaying messages in the same request or is it unwise for me subclass

[fw-general] Re: Using FlashMessenger to display a message when there was an error processing a form

2008-06-03 Thread David Rogers
Hey, all. I've actually run into this problem several times myself and have written an action helper that performs functions similar to FlashMessenger but also allows for an immediately accessible message bucket. My goal with this helper was to be able to leverage a similar interface to

RE: [fw-general] PHP 5.2.6 and Zend_Translate

2008-06-03 Thread Robert Castley
Hi, I didn't quite understand if this is fix in ZF or PHP5? If it is fixed in PHP5 then I assume there will be a new Windows download made available soon(ish) Best Regards, - Robert -Original Message- From: Thomas Weidner [mailto:[EMAIL PROTECTED] Sent: 31 May 2008 19:35 To: Robert

Re: [fw-general] PHP 5.2.6 and Zend_Translate

2008-06-03 Thread Thomas Weidner
Hy, I already answered your question and I also wrote it within the issue several days ago. The problem is a PHP problem. We have integrated a workaround within ZF for this PHP-Windows-526 only bug. The problem has already been solved for ZF within the trunk one day after it has been

Re: [fw-general] Zend_Form ajax update

2008-06-03 Thread Joó Ádám
$form-getElement('myActivateCheckBox')-setAttrib('onchange','this.checked = myAjaxCall(this);') Do not use inline events, use unobtrusive JavaScript: http://en.wikipedia.org/wiki/Unobtrusive_JavaScript Regards, Ádám

Re: [fw-general] Zend_Form ajax update

2008-06-03 Thread Bart McLeod
Thanks for pointing this out. So that would mean something like: $this-view-inlineScript()-appendScript(document.getElementById('myActivateCheckBox').onchange = function(){ myAjaxCall(document.getElementById('myActivateCheckBox'));};) or more sophisticated register the whole thing as an onload

[fw-general] files upload help

2008-06-03 Thread cjant83
Hey, Basically the question is ... does ZF assign form fields a key when you name them with square brackets?? Im trying to convert old php site of mine to ZF. I have a multiple file uploads function that I'm having difficulties 'converting'. My non ZF form/function looks like this: 3x of

RE: [fw-general] Breaking the Silence: Zend_Tool, Command Line Tooling, Project Generation More

2008-06-03 Thread Wil Sinclair
Ralph demoed the tool internally yesterday, and I have to say it is quite impressive. It goes *way* beyond what you might expect after using CLI tools in other frameworks. It looked as simple to use as rails, etc. if you go with the defaults, but when you want to do your own project structure or