Re: [fw-general] Zend_Form Decorator on File element

2009-02-05 Thread PHPScriptor
Are you using the default decorators? When I use my own decorators it's showing the description. When I use de default it never shows the description. So I don't know 'description' is default 'on'... But strange thing in your case is that the description is shown with regular text-fields. Paul

[fw-general] Bug in Zend_Dojo_View_Helper_Form ?

2009-02-05 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

[fw-general] Zend_Form_Element_Checkbox and Firefox.

2009-02-05 Thread Paweł Chuchmała
Hi. As everbody know checkbox element has hidden element for submit value when uchecked. In current version Firefox (3.0.6) it dosen't work. If checkbox is checked, in _POST i have '0'. It's Firefox bug? When I set form method to 'GET' I see, that hidden field is last parameter in url. What

Re: [fw-general] Zend_Form Decorator on File element

2009-02-05 Thread Thomas Weidner
A file element does not have a value in HTML, so there is no content which can be displayed. You have to add a text element of something related to have a description displayed. Greetings Thomas Weidner, I18N Team Leader, Zend Framework http://www.thomasweidner.com - Original Message

Re: [fw-general] Zend_Form Decorator on File element

2009-02-05 Thread Thomas Weidner
Well, he could try to add the Description decorator and see if this works. Still, the thing is, that elements like file, image or submit do not provide description out of the box. Greetings Thomas Weidner, I18N Team Leader, Zend Framework http://www.thomasweidner.com - Original Message

Re: [fw-general] Zend_Form Decorator on File element

2009-02-05 Thread PHPScriptor
Are you sure that setDescription on a file-element doesn't exists? I did a quick test and it seems to work (with Description set in the decorator). I'll do a good test tonight... thomasW wrote: Well, he could try to add the Description decorator and see if this works. Still, the thing is,

Re: [fw-general] Zend_File_Transfer_Adapter_Http() Rename Filter issue

2009-02-05 Thread A.J. Brown
Hey Thomas Eric, I've actually come accross this same issue last night, except I was trying to use the PregReplace filter. My goal was to strip all characters from the name, except those that I allow (which is alphanumerics plus underscore and period). Here's my code. Note line 41 (and yes, I

[fw-general] re[fw-general] direct to referer after submit

2009-02-05 Thread fluxusps
Hi All, In my controller I have an action that will check if $_POST has been submitted. If so, proceed with the db input/update. In not, display the form. I can arrive at this insert/update page from a few different places. Using the $_SERVER['HTTP_REFERER'] won't work because upon

Re: [fw-general] Unable to show latin characters using zend framework

2009-02-05 Thread Baptiste Placé
Hi prado, Which encoding are you using for your project ? You may force encoding in firefox (display encoding) to be sure of it. Then you can use this in your .htaccess file (replace UTF-8 by whatever encoding you use) : AddDefaultCharset UTF-8 Baptiste. prado a écrit : My message

Re: [fw-general] re[fw-general] direct to referer after submit

2009-02-05 Thread A.J. Brown
You can either store the referrer in the session when you're displaying the form, or add it as a hidden field. Hidden field will yeild the best results, Incase the user has two windows open On Thu, Feb 5, 2009 at 8:47 AM, fluxusps p...@concretegong.co.uk wrote: Hi All, In my controller I

[fw-general] Best Practices for Zend_AMF

2009-02-05 Thread Josh Team
I've been beating around the amf bush a while, and now it's time to start the developing. I am reaching out to the community to ask for guidance and learnings from their experience, so if any of you have anything to share I would love to hear it. Below are a few things I've been toying with and I

[fw-general] Zend_Paginator and Action helper (or Actionstack)

2009-02-05 Thread Marko Korhonen
Hello, I have a hard nut to crack. I'll try to explain my situtation: My Default_IndexController::indexAction is my frontpage. I use action helper to call another controller/action: Somemodule_ListController::latestAction There I have Zend_Paginator working nicely. This results my list to

Re: [fw-general] getMessages() crashes with quotes!

2009-02-05 Thread benxmy
So I figured it out to an extent, but I think I'm still one step off and I haven't been able to track down the exact syntax for using regex in this context. I changed the $_validators array to: protected $_validators = 'lname' = array(array('Regex','/[^a-z\'-]/i'))

[fw-general] partialLoop() best practice

2009-02-05 Thread bytte
I use a partialLoop() to loop through query results in the view. So far so good. But for every item returned in the loop, I need to do another database query that returns another set of results that require a new partialLoop(). In the end I have a partialLoop() inside a partialLoop() inside a

Re: [fw-general] getMessages() crashes with quotes!

2009-02-05 Thread Matthew Weier O'Phinney
-- benxmy ben...@gmail.com wrote (on Thursday, 05 February 2009, 12:20 PM -0800): So I figured it out to an extent, but I think I'm still one step off and I haven't been able to track down the exact syntax for using regex in this context. I changed the $_validators array to:

Re: [fw-general] partialLoop() best practice

2009-02-05 Thread Bart McLeod
I do not know if it's the best way, but could you not prepare all the arrays and variables and pass those to the first partialLoop, which passes certain levels to the next nested one and so on? -Bart bytte schreef: I use a partialLoop() to loop through query results in the view. So far so

Re: [fw-general] Zend_Form Decorator on File element

2009-02-05 Thread PHPScriptor
Add the description decorator. Something like this... seems te be working... $this-addElement('file', 'der', array('label' = 'Image File', 'description' = 'Your resulting image. PNG please', 'required' = true, 'validators' = array( array('validator' = 'Count', 'options' = 1),

Re: [fw-general] partialLoop() best practice

2009-02-05 Thread Ramon de la Fuente
If you create view helpers you can call them from anywhere in the levels with this-helper(). I feel that having DB queries and php logic isn't right for a view script, but acceptable in a view helper (well, actually not DB queries, but model instantiation inside the view helpers...) - Ramon

Re: [fw-general] getMessages() crashes with quotes!

2009-02-05 Thread benxmy
I'm sorry, I should have included in my previous post that I tried that while playing around with it, but if I take the ^ out of the expression it returns 'true' as soon as it hits an applicable character that matches the expression, so if I input a string such as Gravit8 it will return true (G

[fw-general] Re: Zend_Paginator and Action helper (or Actionstack)

2009-02-05 Thread Colin Guthrie
'Twas brillig, and Marko Korhonen at 05/02/09 18:31 did gyre and gimble: Hello, I have a hard nut to crack. I'll try to explain my situtation: My Default_IndexController::indexAction is my frontpage. I use action helper to call another controller/action:

Re: [fw-general] Tabbed Dojo Interface

2009-02-05 Thread Cameron
On Wed, Feb 4, 2009 at 11:54 PM, Matthew Weier O'Phinney matt...@zend.comwrote: -- HenryG henry.god...@tanist.co.uk wrote (on Wednesday, 04 February 2009, 04:05 AM -0800): I'm just starting out with Zend and Dojo and I have a quick question which I hope you can answer. I have built a

Re: [fw-general] Zend_Form Decorator on File element

2009-02-05 Thread Paul Reinheimer
Thanks for all the help everyone, I'm rather curious as to why this is necessary, but I'll split that out into its own thread. paul

Re: [fw-general] Zend_File_Transfer_Adapter_Http() Rename Filter issue

2009-02-05 Thread Ehask71
AJ, $upload = new Zend_File_Transfer_Adapter_Http(); $upload-addValidator('Size', false, 20, 'file1'); $upload-setDestination('/home/uglymen/public_html/tmp/'); $files = $upload-getFileInfo(); $i=0; foreach ($files as $file = $info) {

Re: [fw-general] How to display validator specific error message in Zend_Form?

2009-02-05 Thread Deepak Shrestha
On Thu, Feb 5, 2009 at 10:08 PM, A.J. Brown fynw...@gmail.com wrote: On Wed, Feb 4, 2009 at 9:44 PM, Deepak Shrestha d88...@gmail.com wrote: Thanks. How about assigning specific error message to each validator? Use the options array (3rd parameter). The key should be 'messages' and the

Re: [fw-general] Zend_File_Transfer_Adapter_Http() Rename Filter issue

2009-02-05 Thread A.J. Brown
Hmm, Let me play around with it and see if I can write a RegexRename filter. I imagine it won't be too difficult :) On Fri, Feb 6, 2009 at 12:11 AM, Eric Haskins cybertuff...@verizon.netwrote: AJ, $upload = new Zend_File_Transfer_Adapter_Http(); $upload-addValidator('Size', false,