RE: [fw-general] Confused about decorators

2008-12-18 Thread vibhor singh
Thanks Mon! I'll try it out and see what happens. -Vibhor _ From: Mon Zafra [mailto:mon...@gmail.com] Sent: Thursday, December 18, 2008 4:23 PM To: fw-general@lists.zend.com Subject: Re: [fw-general] Confused about decorators You should put the My directory at the same level a

[fw-general] Action on button problem

2008-12-18 Thread Aniketto
Hi all, I am developing an application. In this application I have a search facility for students. The screen has a search button which if preesed shows result in tabular format.Also if search is successful two buttons download and detail are displayed. If download button is presses a csv file ic

Re: [fw-general] Short Tags vs. Long Tags performance question

2008-12-18 Thread Matthew Weier O'Phinney
-- Kevin Schroeder wrote (on Thursday, 18 December 2008, 01:51 PM -0800): > Just make sure you don't have any XML processing instructions embedded > anywhere. Or, better yet, use one of the various XML extensions to generate your XML for you. ;) (Seriously. If you're templating your XML, you're

RE: [fw-general] Short Tags vs. Long Tags performance question

2008-12-18 Thread Kevin Schroeder
Just make sure you don't have any XML processing instructions embedded anywhere. Kevin -Original Message- From: Matthew Weier O'Phinney [mailto:matt...@zend.com] Sent: Thursday, December 18, 2008 8:41 AM To: fw-general@lists.zend.com Subject: Re: [fw-general] Short Tags vs. Long Tags per

Re: [fw-general] Caching Enabled flag for backend

2008-12-18 Thread Matthew Weier O'Phinney
-- Dan Wilson wrote (on Thursday, 18 December 2008, 01:21 PM -0700): > I've added Zend_Cache to my project, but have multiple environments. > I'm using memcache as my backend, but only in one environment. In the > other environment, I don't want caching enabled at all. When I try to > disable ca

[fw-general] Caching Enabled flag for backend

2008-12-18 Thread Dan Wilson
I've added Zend_Cache to my project, but have multiple environments. I'm using memcache as my backend, but only in one environment. In the other environment, I don't want caching enabled at all. When I try to disable caching however, it still tries to instantiate the Memcache object. I don't hav

AW: [fw-general] setOptions in reCaptcha form element

2008-12-18 Thread Markus Hausammann
and then again, it only works, if the captcha field is totally empty... if I enter the wrong words I get : Captcha value is wrong: incorrect-captcha-sol and that's what I don't want! has anyone done that? -Ursprüngliche Nachricht- Von: Markus Hausammann [mailto:cont...@markushausammann.

AW: [fw-general] setOptions in reCaptcha form element

2008-12-18 Thread Markus Hausammann
follow up question: How can I add a custom error message to the Captcha Element? In order to change the validator message I have to getValidator() but in this case I didn't define any... so how can I change the message? Thanks! -Ursprüngliche Nachricht- Von: Mike Rötgers [mailto:m...@roe

AW: [fw-general] setOptions in reCaptcha form element

2008-12-18 Thread Markus Hausammann
stupid me: I tried to get the element before I had assigned it. Mikes solution works! -Ursprüngliche Nachricht- Von: Markus Hausammann [mailto:cont...@markushausammann.ch] Gesendet: Donnerstag, 18. Dezember 2008 19:44 An: fw-general@lists.zend.com Betreff: AW: [fw-general] setOptions in

AW: [fw-general] setOptions in reCaptcha form element

2008-12-18 Thread Markus Hausammann
Thanks Mike, if I do that I get: Call to a member function getCaptcha() on a non-object, I've tried 'challenge' and 'ReCaptcha' instead of 'captcha' but nothing works. -Ursprüngliche Nachricht- Von: Mike Rötgers [mailto:m...@roetgers.org] Gesendet: Donnerstag, 18. Dezember 2008 19:23 An:

Re: [fw-general] setOptions in reCaptcha form element

2008-12-18 Thread Mike Rötgers
I had the same problem. Maybe there is a more elegant way ... however, this works for me: $form->getElement('captcha')->getCaptcha()->getService()->setOption('theme', 'clean')->setOption('lang', 'de'); Kind regards Mike Markus Hausammann schrieb: > Hi > I'm implementing recaptcha but I would lik

[fw-general] setOptions in reCaptcha form element

2008-12-18 Thread Markus Hausammann
Hi I'm implementing recaptcha but I would like to change the theme and the language. Here is how I create the form element: $captcha = new Zend_Form_Element_Captcha('challenge', array( 'captcha' => 'ReCaptcha', 'captchaOptions' => array(

RE: [fw-general] Short Tags vs. Long Tags performance question

2008-12-18 Thread Robert Castley
Thank you :-) -Original Message- From: Matthew Weier O'Phinney [mailto:matt...@zend.com] Sent: 18 December 2008 14:41 To: fw-general@lists.zend.com Subject: Re: [fw-general] Short Tags vs. Long Tags performance question -- Robert Castley wrote (on Thursday, 18 December 2008, 09:21 AM -

Re: [fw-general] Interact with zend_http request

2008-12-18 Thread A.J. Brown
You can set cookie values if you use a CookieJar with the request, though. It wouldn't be an automated solution, and would break if the client code changes, though. -- A.J. Brown Zend Certified PHP Engineer http://ajbrown.org/blog Giuliano Riccio wrote: > > Probably it's not possible since Z

Re: [fw-general] Short Tags vs. Long Tags performance question

2008-12-18 Thread Matthew Weier O'Phinney
-- Joó Ádám wrote (on Thursday, 18 December 2008, 10:35 AM +0100): > I haven't heard anything about that yet, however in my opninion it > must _decrease_ performance… Based on...? PHP compiles http://framework.zend.com/

Re: [fw-general] Short Tags vs. Long Tags performance question

2008-12-18 Thread Matthew Weier O'Phinney
-- Robert Castley wrote (on Thursday, 18 December 2008, 09:21 AM -): > If you enable your ZF application to use short tags is there a > benefit/increase > in performance over littering your view scripts with echo this and echo that? They operate exactly the same. -- Matthew Weier O'Phinney

[fw-general] Custom form element - passing options to viewHelper

2008-12-18 Thread sinkingfish
Hi, I making a custom form element which is 3 fields for phone numbers, ie country code, area code & number. I'm getting tripped up when I want to set options for the element in the viewHelper. So I want the element to be flexible and be able to set how many characters each field can hold. m

Re: [fw-general] Interact with zend_http request

2008-12-18 Thread Giuliano Riccio
Probably it's not possible since Zend_Http doesn't execute the javascript content of the page. Giuliano Junior Gillespie-2 wrote: > > Hello, I've recently ran into a problem that's I'm unable to find a > work around for. > > Using Zend_HTTP, I'm accessing a site and posting authentication > cr

Re: [fw-general] Session oddity

2008-12-18 Thread spaceage
Yes, this would be true--the code I posted is a snippet and not the entire init()--I have code which checks if the string var is set to avoid the problem you note. Turns out that this issue is a PHP5 "feature" I overlooked where strings (and all scalars?) are assigned by value by objects are assi

[fw-general] Interact with zend_http request

2008-12-18 Thread Junior Gillespie
Hello, I've recently ran into a problem that's I'm unable to find a work around for. Using Zend_HTTP, I'm accessing a site and posting authentication credentials. Upon success, remote page redirects to a confirm page with an "Ok" button. This button utilizes the onClick event to expire a cookie in

Re: [fw-general] date validation without specific format

2008-12-18 Thread Martijn Korse
I think i would use a date-filter first, that converts the date into a specific format and then try to validate that specific format. If the filter is not able to recognize the format, then it won't validate. Dealing with different kinds of formats is more a responsibility of a filter than a valid

Re: [fw-general] Insert HTML / JS in to middle of a zend_form

2008-12-18 Thread Tim Nagel
We've been inserting all javascript after the entire form, or in the head using the onDOMReady event provided by YUI. Seems to work well for most things. T On Thu, Dec 18, 2008 at 07:59, Bart McLeod wrote: > you will need a decorator on your first element, with placement set to > 'append' or

[fw-general] Strategy for storing multilingual content in the database.

2008-12-18 Thread Colin Guthrie
Hi Guys, I'm just wondering is there is a good Zend Framework-based methodology for storing multi-lingual content in a database? I know that there are several structures for doing this kind of thing, including tables of strings that include language identifiers and such like, but these can o

Re: [fw-general] Confused about decorators

2008-12-18 Thread Mon Zafra
You should put the My directory at the same level as Zend: library Zend Controller Form, View, etc. My Decorator Composite.php your other library classes, e.g. helpers, plugins, forms -- Mon On Thu, Dec 18, 2008 at 2:57 PM, vibhor s

[fw-general] date validation without specific format

2008-12-18 Thread Jan Pieper
Is it possible to validate a string against each date/datetime format? The validation should stop when a valid format is found. -- Jan

Re: [fw-general] Session oddity

2008-12-18 Thread Giuliano Riccio
You are setting your string variable to "top" in the session namespace everytime you request that controller, that's probably why. spaceage wrote: > > I should clarify that the string var does get (and persist) the initial > assignment of "top", but subsequent changes to the var doesn't > persis

Re: [fw-general] Short Tags vs. Long Tags performance question

2008-12-18 Thread Joó Ádám
I haven't heard anything about that yet, however in my opninion it must _decrease_ performance… Regards, Ádám

[fw-general] Short Tags vs. Long Tags performance question

2008-12-18 Thread Robert Castley
Hi, If you enable your ZF application to use short tags is there a benefit/increase in performance over littering your view scripts with echo this and echo that? Cheers, - Robert This email has been scanned for all kno