Ok, /me is dumbass.
Can be done fairly easily by calling $element->isArray () on each
element you
want to have '[]' appended to it's name. For select elements you need to
explicitly set the 'multiple' attribute to false to stop them becoming
multi
selects.
--
Mathew Byrne
http://www.matbyr
We're preparing to migrate to a new data center, and now need to migrate
our SVN data. I'm marking subversion as read-only until we're online and
ready at the new datacenter.
Sorry for the inconvenience; hold on to your commits until later.
--
Matthew Weier O'Phinney
Software Architect | [
Yes, I know the shutdown of the wiki to read-only mode is not particular
well timed considering the Big Q&A is coming up this Wednesday.
Unfortunately, the maintenance period could not be put off; believe me-
if it were possible I would have done it!
So, please post any questions you would like ans
Hi to everyone, i have a strange problem with Zend_Form and Decorators. I
have to implement a form in which every element and the corresponding label
must be surrounded by a table row and with label and element in their
respective cells, so i extended the Zend_Form class and in the constructor i
w
I'd also like to add:
What are the current thoughts on using non-DB stuff in the Model Layer
(i.e. Web Services, XML, JSON, etc) and is there an ETA?
Is there any more work going into a Code Generation tool for
scaffolding, as in other framework? (I remember there being some mention
of this befor
Of course, this would also be a way like I described in a previous mail.
Use two seperated translation adapters (which is now not possible).
Or add a functionality to disable pre-set translators like described by you.
Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
http://www.thomaswei
Thomas, I understand your point. But the issue we have with
Zend_Validate is that it injects values into the messages -- which means
that the message strings are not reliable. Are you suggesting that we
use them anyways, instead of the validation error constants?
The proper way of translating ex
As I can't edit the page at the moment due to some kind of major lock down
;)
Here are my questions for the The Big Zend Framework Q&A.
- We've seen some well made large collections of objects / components
in ZF which make up things like Db, MVC, and Form etc. What do you see as
the next
Maybe it could be useful if we set "disableTranslator" on a
validator/element it keep fixed during the script. If the "isValid" method
in Zend_Form tries to set the translator again, the element should refuse
it.
We have a practical example, in some forms we have a checkbox to let the
user 'agree'
-- Thomas Weidner <[EMAIL PROTECTED]> wrote
(on Monday, 28 April 2008, 09:00 PM +0200):
> The problem from your description is that you need to have two different
> translations for one messageid.
>
> How should Zend_Translate know what you want when you ask for "mess1" ?
> Do you mean component
The problem from your description is that you need to have two different
translations for one messageid.
How should Zend_Translate know what you want when you ask for "mess1" ? Do
you mean component1 or component2.
The only thing to handle such things is
* Use different messageids
or
* Use two
I wrote a post on my blog the other day that does exactly this:
http://cogo.wordpress.com/2008/04/16/custom-validators-for-zend_form_element/
Xavier Vidal Piera wrote:
Hi
I'd like to know which is the best approach to build complex forms with
Zend_Form.
As a example, in a "Register User" fo
> http://us.php.net/soap
The PHP 5 Soap extension is relatively easy to use, once you can get
past the sparse documentation. However, I found that it lacked certain
control (especially over xml namespaces) and have had to abandon it for
consuming a service published internally by our Java Team.
S
Thank you Matthew
It wasnt clear for me. With your replay i can see the ligth. :)
Regards
Matthew Weier O'Phinney-3 wrote:
>
> -- JI Sánchez <[EMAIL PROTECTED]> wrote
> (on Thursday, 24 April 2008, 10:12 AM -0700):
>> I'm confused about filter's configuration with XML. This is my question.
>>
Ah, one more thing.
It doesn't matter if you disable the translator in a form element or
validator. The "isValid" method in Zend_Form will assign the translator
again to elements if there's a translator available.
On Mon, Apr 28, 2008 at 4:33 PM, Xavier Vidal Piera <[EMAIL PROTECTED]>
wrote:
> O
Ok, let's see.
I have a form with a Text input, a Password input and a Checkbox.
The "Zend_Validate_NotEmpty" validator has a message id "isEmpty".
In my translations file i have a translation for the "isEmpty" key, for
example, "Value is required".
When i setup the form, i call the "Zend_Form:
I'm trying to solve a very similar problem at the moment using
Zend_Form.
Calling $element->setIsArray (true); basically does what you're after,
however
I've found that the select view renderer will automatically detect
square
brackets at the end of a name and output a multi-select rather tha
Xavier,
I quite dont understand your problem.
When doing a translation with Zend_Translate all inputs are translated to
defined output.
When you don't want something to be translated then don't call
Zend_Translate on it.
Of course will Zend_Translate translate all given messageids... that's th
Xavier,
I quite dont understand your problem.
When doing a translation with Zend_Translate all inputs are translated to
defined output.
When you don't want something to be translated then don't call
Zend_Translate on it.
Of course will Zend_Translate translate all given messageids... that's th
-- Greg Donald <[EMAIL PROTECTED]> wrote
(on Friday, 25 April 2008, 05:22 PM -0500):
> On Fri, Apr 25, 2008 at 4:23 PM, David Rogers <[EMAIL PROTECTED]> wrote:
> > WebServicesX.com looks like a SOAP-based XML-RPC service, which employs a
> > WSDL that would tell you what you could ask the server fo
On Fri, Apr 25, 2008 at 4:23 PM, David Rogers <[EMAIL PROTECTED]> wrote:
> WebServicesX.com looks like a SOAP-based XML-RPC service, which employs a
> WSDL that would tell you what you could ask the server for, etc. In that
> case, the component you're looking for is Zend_Soap, which is still in
>
Hi
We're using a Zend_Translate object as a default translator for our
Zend_Form objects.
In this Translation object we have all our common translations but,
sometimes we want to override a validation error message with the method
"$v->setMessage()" but looking at the source code we can see that
-- Xavier Vidal Piera <[EMAIL PROTECTED]> wrote
(on Monday, 28 April 2008, 10:20 AM +0200):
> At the moment, is there any method or proposal to test values between
> Form_Elements (like the "equals" between passwords)?.
You can use the $context parameter to a validator's isValid() method,
which is
Just to update others on this topic. Gunter found the problem to be with PHP
itself. A bug is listed on it here:
http://bugs.php.net/bug.php?id=43677&edit=2HTH
It says the problem is fixed in 5.2.6 so will upgrade when that becomes
available. In the meantime I'm going to have a play around changi
Hi
I've seen that the method "processAjax" only validates partially the form
(without checking required fields).
Maybe it would be nice to have to methods : "processPartialAjax" and
"processAjax" to allow partial/full validation and recieve the relative
messages.
--
Xavier Vidal Piera
Enginyer
Hi Xavier,
Please see: http://framework.zend.com/issues/browse/ZF-2115
I'm working on it...
Best,
Andriesss
Xavier Vidal Piera schreef:
Hi
I'd like to know which is the best approach to build complex forms
with Zend_Form.
As a example, in a "Register User" form we can find the typical "
Hi
I'd like to know which is the best approach to build complex forms with
Zend_Form.
As a example, in a "Register User" form we can find the typical "enter your
password" input twice, so when we declare the form in our controller we can
do two things:
1. add two "Zend_Form_Element_Password" and
27 matches
Mail list logo