Hi,
Sorry to disturb.
I think there something wrong here
var_dump(Zend_Validate::is(1234567890, 'Int'));//true
var_dump(Zend_Validate::is(12345678901, 'Int'));//false
Bye.
--
View this message in context:
http://n4.nabble.com/Zend-Validate-is-Int-more-than-10-digits-return-false-tp1570772p15707
an example how you called Zend_Validate::is() we can only guess.
Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidner.com
- Original Message -
From: "Dennis Becker"
To: "Zend Framework General"
Sent: Tuesday, September 08
II have recently switched ZF Version from 1.7.4 to ZF 1.9.2 and I ran into a
problem with Zend_Validate::is() and Zend_Validate_Int. A variable should be
checked if it is an integer and between 1 and 31 - nothing special so far.
But Zend_Validate calls Zend_Validate_Int with "1" as parameter for th
Hi,
i have an question about Zend_Validate. The validate classes are shipped
with english message as default.
It would be nice to offer some language files which can be used with
Zend_Translate in some other languages.
Is there any official/unofficial language file for german?
Thanks
Christian
Hi Martijn,
It would be helpful if you could define "barfing" for us. Is an exception
being thrown? Is a validator not being added? Are none of the validators
being added?
On Sat, Feb 7, 2009 at 3:49 AM, Martijn Korse wrote:
>
>
> Bob O wrote:
> >
> > I am stumped, if anyone can point me in a
Bob O wrote:
>
> I am stumped, if anyone can point me in a good direction where i can find
> solid docs on using Zend validation and filters from an ini file that
> would be super..Im not a Zend Guru, so sometimes deciphering what is being
> presented is frustrating.
>
Hi Bob O
I doubt there
I am stumped, if anyone can point me in a good direction where i can find
solid docs on using Zend validation and filters from an ini file that would
be super..Im not a Zend Guru, so sometimes deciphering what is being
presented is frustrating.
This is my code that is barfing on me. its mainly bu
Goran Juric wrote:
>
>
> nwhiting wrote:
>>
>> shouldn't this return any error messages set within those validators?
>> As even Zend_Validate_EmailAddress does not return any error, and my
>> custom validators are setup just as defined in the documentation
>>
>
> Yes, they should display er
nwhiting wrote:
>
> shouldn't this return any error messages set within those validators?
> As even Zend_Validate_EmailAddress does not return any error, and my
> custom validators are setup just as defined in the documentation
>
Yes, they should display error messages.
Have you tried checkin
nwhiting wrote:
>
> I have a question about this.
>
> Does Zend_Validate work on a per element basis and is not parsed when you
> call
> $this->form->isValid($_POST);
> ??
>
> When I add custom validations are they going to be parsed and produce
> error messages to the errorMessage strin
Sent: Thursday, November 13, 2008 9:24 AM
Subject: [fw-general] Zend_Validate or Zend_Validate_EmailAddress BUG
Hello,
I try to validate email address with wrong hostname([EMAIL PROTECTED]) and the
validator returns following errors:
array(3) {
["emailAddressInvalidHostname"] =>
Hello,
I try to validate email address with wrong hostname([EMAIL PROTECTED]) and the
validator returns following errors:
array(3) {
["emailAddressInvalidHostname"] => string(63) "'www.ww' is not a valid
hostname for email address '[EMAIL PROTECTED]'"
[0] => string(77) "'www.ww' appears to be
I have a question about this.
Does Zend_Validate work on a per element basis and is not parsed when you
call
$this->form->isValid($_POST);
??
When I add custom validations are they going to be parsed and produce error
messages to the errorMessage string?
Such as all of my form elements ar
chinaski wrote:
>
> Hello.
>
> How can I validate a date-time string as '-mm-dd H:i:s' format?
>
> Thanks in advance.
>
> chinaski
>
Zend_Validate_Date has a setFormat() method, have you tried it?
Regards,
Goran Juric
http://gogs.info/
--
View this message in context:
http://www.n
Hello.
How can I validate a date-time string as '-mm-dd H:i:s' format?
Thanks in advance.
chinaski
--
View this message in context:
http://www.nabble.com/Zend_Validate-datetime-format-tp19983722p19983722.html
Sent from the Zend Framework mailing list archive at Nabble.com.
Hi
I have seen some similar questions and answers how to set Zend_Form or
Zend_Validate to work with Zend_Translate gettext. Thing I did not find is
how to use gettext tools to extract strings which should be translated? Can
somebody please explain in small example gettext tool usage in this
situ
t;> $regex->addValidator(new Zend_Validate_Regex("^[\p{L}\.\-_ 0-9]+$"));
>> $form->addElement($regex);
>> $form->setView(new Zend_View());
>>
>> echo $form;
>>
>> try {
>> if ($_POST) {
>> if (!$form->isValid($_POST)) {
echo 'Caught exception: ', $e->getMessage(), "\n";
}
?>
worked for me.
Regards
Matthias
---- Original-Nachricht
> Datum: Fri, 15 Aug 2008 20:59:53 +0200
> Von: "Matthias Coy" <[EMAIL PROTECTED]>
> An: "Matthias Coy" &l
chricht
> Datum: Fri, 15 Aug 2008 20:47:11 +0200
> Von: "Matthias Coy" <[EMAIL PROTECTED]>
> An: Bruno Friedmann <[EMAIL PROTECTED]>
> CC: fw-general@lists.zend.com
> Betreff: Re: [fw-general] Zend_Validate regex way to soluce ?
> ok,
>
> I don
but I have also some work to do :)
Regards
Matthias
Original-Nachricht
> Datum: Fri, 15 Aug 2008 20:11:13 +0200
> Von: Bruno Friedmann <[EMAIL PROTECTED]>
> An:
> CC: fw-general@lists.zend.com
> Betreff: Re: [fw-general] Zend_Validate regex way to soluce ?
rted";
> }
> echo "";
> echo "";
> }
> ?>
>
>
>
> Original-Nachricht
>> Datum: Fri, 15 Aug 2008 17:22:52 +0200
>> Von: Bruno Friedmann <[EMAIL PROTECTED]>
>> An: Matthias Coy <[EMAIL PROT
Original-Nachricht
> Datum: Fri, 15 Aug 2008 17:22:52 +0200
> Von: Bruno Friedmann <[EMAIL PROTECTED]>
> An: Matthias Coy <[EMAIL PROTECTED]>
> CC: fw-general
> Betreff: Re: [fw-general] Zend_Validate regex way to soluce ?
> Matthias Coy wrote:
>
-4 extended characters
allowed ?
>
> Regards
> Matthias Coy
>
> Original-Nachricht
>> Datum: Fri, 15 Aug 2008 16:42:35 +0200
>> Von: Bruno Friedmann <[EMAIL PROTECTED]>
>> An: fw-general
>> Betreff: [fw-general] Zend_Validate r
ards
Matthias Coy
Original-Nachricht
> Datum: Fri, 15 Aug 2008 16:42:35 +0200
> Von: Bruno Friedmann <[EMAIL PROTECTED]>
> An: fw-general
> Betreff: [fw-general] Zend_Validate regex way to soluce ?
> Hi All,
> I need to allow many special thing to
Hi All,
I need to allow many special thing to be allowed in a username login field.
(Historical database, so it would nearly impossible to change all this username)
I need all Alpha numeric word present in french,english,german language so
there a lot's of à é ö ü etc ...
Plus username could cont
Hi,
yes it's great to hear this. I'll try to keep track of the developments
regarding form and error handling and dig deeper into this topic during
the holidays :-)
Keep up the good work
Sascha
Bryce Lohr schrieb:
> Thanks Darby! That's encouraging news. I'll keep my eyes open. :)
>
> Regards
Thanks Darby! That's encouraging news. I'll keep my eyes open. :)
Regards,
Bryce Lohr
Darby Felton wrote:
Hi Bryce and Sascha,
Matthew and I have discussed some changes to the validation classes, and
when I take a look at them, I'll also keep in mind how better we can
support your use cases.
Hi Bryce and Sascha,
Matthew and I have discussed some changes to the validation classes, and
when I take a look at them, I'll also keep in mind how better we can
support your use cases. I think we'll need this functionality, too, for
Zend_Form, and I'm confident we'll arrive upon a reasonable sol
Sascha Goebel wrote:
Hi Bryce,
when reading the long Zend_Form thread, I think Mathew already
talked about modifying the Zend_Validate_* classes for easier access
to the message templates.
Maybe we should check the outcome of this project before proposing the
complete rework of the clas
Hi Bryce,
when reading the long Zend_Form thread, I think Mathew already
talked about modifying the Zend_Validate_* classes for easier access to
the message templates.
Maybe we should check the outcome of this project before proposing the
complete rework of the classes? What do you think
Hi Sascha,
There are several things I just don't like about how the Zend_Validate_*
classes deal with error messages. If someone could shed some light on
why things are like this, I'd be grateful:
* getErrors() vs. getMessages(): Why not just have one method,
getErrors(), that returns error
Hi Bryce,
this looks like a promising approach and feels more natural like the
array config to me. I'll definitely have a look at this soon.
Sadly it doesn't solve my problem with the message templates. Of course
I could set the messages für each configuration separately, but the big
picture I ha
This may or may not be helpful, but I have a class in the Laboratory
(Zend_Validate_Builder_ErrorManager) that is designed to solve just such
as use case:
http://framework.zend.com/svn/laboratory/library/Zend/Validate/Builder/ErrorManager.php
The only documentation I have, as of yet, is in this
Hi Dmitry,
per default the fields are not required.
You will have to set the option
$options = array(Zend_Filter_Input::PRESENCE =>
Zend_Filter_Input::PRESENCE_REQUIRED);
$input->setOptions($options);
and your url field will show up as missing.
If you want to have the field validated, you have
Hey guys.
I tested followig code and little confusing:
Zend_Loader::loadClass('Zend_Filter_Input');
$filters = array(
'*' => array('StringTrim', 'StripTags')
);
$validators = array(
'url' => array(
'Hostname',
Hi fellow hackers!
I'm writing an application using the Zend_Filter_Input class for
filtering and validation. My app is multilingual and I have an instance
of Zend_Translate up and running.
The only problem is, that I'd like to translate the error messages, or
better said the message templates,
Oh yeah, good point. Hmmm, tricky. It would be very beneficial to find
another way to change the messages class wide though, especially for
people who need non English messages. I guess the only way to do it is
to extend the validator and then override the property?
Bill Karwin wrote:
One of
e is identical to the code in the
parent class. This makes static properties painful to work with, so I
avoid them wherever possible.
Regards,
Bill Karwin
> -Original Message-
> From: Jack Sleight [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 15, 2007 1:29 AM
> To:
Will do.
Darby Felton wrote:
Hi Jack,
It seems like a good new feature request to be able to modify class
configuration (e.g., through use of static variables) in addition to the
existing ability to configure instances separately.
Would you mind filing a JIRA issue for this?
Best regards,
Dar
Hi Jack,
It seems like a good new feature request to be able to modify class
configuration (e.g., through use of static variables) in addition to the
existing ability to configure instances separately.
Would you mind filing a JIRA issue for this?
Best regards,
Darby
Jack Sleight wrote:
> Off th
Off the back of the post by Ivo Trompert regarding changing the error
messages returned by Zend_Filter_Input, would it be beneficial to make
the $_messageTemplates property of each validator static? So they can be
customised easily, validator wide, rather than per instance?
--
Jack
Hello,
One solution would be to set the messages on the individual validation
objects prior to adding them to the chain.
Also, if you might make use of Zend_Filter_Input, you can use the
MESSAGES metacommand in order to control validation failure messages.
Hope this helps!
Best regards,
Darby
How can I set custom error messages when doing a validator chain? I was
trying something like this, but I just get an error that setMessages is an
undefined method in Zend_Validate
$validatorChain = new Zend_Validate();
$validatorChain
->addValidator(new Zend_Validate_NotEmpty(),t
Original Message -
From: "Pádraic Brady" <[EMAIL PROTECTED]>
To: "Andries Seutens" <[EMAIL PROTECTED]>
Cc: "Zend Framework General"
Sent: Tuesday, May 29, 2007 6:49 PM
Subject: Re: [fw-general] Zend_Validate
From what I remember the CLDR exemplar
;
Zend Framework General
Sent: Tuesday, May 29, 2007 9:58:56 AM
Subject: Re: [fw-general] Zend_Validate
Hello Alexander,
This issue is slightly more complicated, and so far, we have not come to
a consensus. You might want to check out the following Jira issue as well:
http://framework.zend.com/
encoding.
Long post, eh? :) Hope it helps some.
Pádraic Brady
http://blog.astrumfutura.com
http://www.patternsforphp.com
- Original Message ----
From: Alexander Jaeger <[EMAIL PROTECTED]>
To: Darby Felton <[EMAIL PROTECTED]>
Cc: Guillaume Millet <[EMAIL PROTECTED]>; Zend Frame
Hello Alexander,
This issue is slightly more complicated, and so far, we have not come to
a consensus. You might want to check out the following Jira issue as well:
http://framework.zend.com/issues/browse/ZF-1248
I have a proof of concept available here:
http://andries.systray.be/Alpha.phps
Hello List,
i waited eagerly to see 1.0 RC1, and here it is ;)
I am still looking for a solution to my Umlauts problem,
i tried using the mbstring settings within php,
[mbstring]
mbstring.language = neutral
mbstring.http_input = iso-88589
mbstring.http_output = iso-8859-1
mbstring.internal_enc
Hi Alex,
The issue you experience is related to ZF-269:
http://framework.zend.com/issues/browse/ZF-269
Thanks for the report!
Best regards,
Darby
Alexander Jäger wrote:
> Sorry to bother,
>
> I try to validate a variable cotaining my lastname "jäger".
>
> $alpha = new Zend_Validate();
> $alp
Sorry to bother,
I try to validate a variable cotaining my lastname "jäger".
$alpha = new Zend_Validate();
$alpha->addValidator(new Zend_Validate_StringLength(1, 64));
$alpha->addValidator(new Zend_Validate_Alpha());
$var1 = "jäger"
if ($alpha->isValid($var1) {
echo $var1 . 'is Valid';
} els
Hello Guillaume,
thats a simple solution
somtimes i don´t see the forest, because of all the trees.
thanks.
Alex
Guillaume Millet schrieb:
Hi Alex,
If you're trying to validate data like your name using
Zend_Validate_Alpha, you may want to try and set PHP's locale to
German using setl
Hi Alex,
If you're trying to validate data like your name using
Zend_Validate_Alpha, you may want to try and set PHP's locale to German
using setlocale() if it's not already done.
Regards,
Guillaume
Lx a écrit :
Simon R Jones schrieb:
Hi Alexander,
Some domain names have been set up to
Simon R Jones schrieb:
Hi Alexander,
Some domain names have been set up to accept international characters, DE
domains being one of them. More info on how to use it is on
http://framework.zend.com/manual/en/zend.validate.validating_hostnames.html
However, there have been reports of it not wor
Hi Alexander,
Some domain names have been set up to accept international characters, DE
domains being one of them. More info on how to use it is on
http://framework.zend.com/manual/en/zend.validate.validating_hostnames.html
However, there have been reports of it not working reliably for some pe
Hello together,
i try to get Zend_Validate to work with german umlauts,
but they are not recognized as normal Alpha chars?
Also I couldn´t find any solution using regex to validate.
does any one know of a solution?
Greatly appreciated,
Alexander Jäger
Here is a solution: just instantiate a new Validate Type for each
field name.
// Validation
$validations = array();
$validations['email'] = new Zend_Validate_EmailAddress();
$validations['firstName'] = new Zend_Validat
List,
I'm working with Zend_Validate and my first usage example did not
work as expected. Perhaps this is not user expected behavior. The
issue is that each Zend_Validate_Interface::isValid() resets the
_messages property each time it's called. Leaving this example
somewhat useless.
57 matches
Mail list logo