Re: [fw-general] Zend_Form - select - option bgcolour

2009-09-19 Thread zloty
Hi, I dont use php for that. In my project a nned to set background color as value of options so just after generated form i write some jquery code: $(document).ready(function(){ $('#select option').each(function(i) { $(this).css('background-color', $(this).attr('label

Re: [fw-general] error messages in form

2009-09-19 Thread Pádraic Brady
May I suggest you read the documentation before asking questions on the mailing list? I don't mean to be rude, but the documentation has all your answers and it supports a search form also. Failing that, run a google search using "site:http://framework.zend.com/manual/en"; as a search term. Pá

Re: [fw-general] error messages in form

2009-09-19 Thread Joó Ádám
If I understand you correctly, you want to add custom error messages: http://framework.zend.com/manual/en/zend.form.elements.html#zend.form.elements.validators.errors $name = new Zend_Form_Element_Text('name', array( 'label' => 'Név', 'maxlength' => 50, 'required' => true, 'validat

[fw-general] error messages in form

2009-09-19 Thread aoohralex
I must create my own 3. error communicates for field - 'name' - in Symfony Framework it would be: $this->setValidators(array( 'name' => new sfValidatorString(array('min_length' => 2, 'max_length' => 50, 'trim' => true), array('required' => 'Name is required.', 'min_length' =>

Re: [fw-general] Dojo form controls style Issue

2009-09-19 Thread Matthew Weier O'Phinney
-- Naimesh.Trivedi (Gmail) wrote (on Saturday, 19 September 2009, 04:55 PM +0530): > Well I am using dojo in my zend application, I have used dojo 1.3.2 and copied > it in /public/js and calling control's directly then using via Zend digit so > that this new version controls works. > > a) Actuall

Re: [fw-general] list of validators in Zend like in Symfony Framework

2009-09-19 Thread Matthew Ratzloff
Go look at the source code, see how each works, and then decide. Looking at the source code will save you time for waiting for a response from the mailing list. -Matt On Saturday, September 19, 2009, aoohralex wrote: > > ok - thx - I searched in bad place - in Zen_Forms > > I have one more quest

Re: [fw-general] How to bootstrap application in testing environment

2009-09-19 Thread Sudheer Satyanarayana
On Friday 18 September 2009 07:09 PM, Sudheer Satyanarayana wrote: Hi, I followed the tutorial at zendcasts.com ( http://tinyurl.com/n4hee2 ) to setup testing environment for my ZF enabled application. Everything went fine with regards to the tutorial. But the tutorial recommends including a

Re: [fw-general] list of validators in Zend like in Symfony Framework

2009-09-19 Thread aoohralex
ok - thx - I searched in bad place - in Zen_Forms I have one more question - what is the difference between Digits and Int - Digits can have only numbers and Int can have only numbers - I don't know what I should use ?? -- View this message in context: http://www.nabble.com/list-of-validators-

Re: [fw-general] list of validators in Zend like in Symfony Framework

2009-09-19 Thread Thomas Weidner
Why don't you simply search the documentation ? A search for "validator" would have given you "Zend_Validate" and 2-4 sections about validators. Greetings Thomas Weidner, I18N Team Leader, Zend Framework http://www.thomasweidner.com - Original Message - From: "aoohralex" To: Sent:

Re: [fw-general] list of validators in Zend like in Symfony Framework

2009-09-19 Thread Alan Wagstaff
Hi, You can find a list in the Zend_Validate section of the manual here - http://framework.zend.com/manual/en/zend.validate.html Kind regards, Alan 2009/9/19 aoohralex > > Where is list of validators in Zend ? Here rather not: > > http://f

[fw-general] list of validators in Zend like in Symfony Framework

2009-09-19 Thread aoohralex
Where is list of validators in Zend ? Here rather not: http://framework.zend.com/manual/en/zend.form.elements.html#zend.form.elements.validators In Symfony Framework I have in documentation list of all validator: http://www.symfony-project.org/api/1_2/validator I need integer validator and numbe

[fw-general] Dojo form controls style Issue

2009-09-19 Thread Naimesh.Trivedi (Gmail)
Hello ! Well I am using dojo in my zend application, I have used dojo 1.3.2 and copied it in /public/js and calling control's directly then using via Zend digit so that this new version controls works. a) Actually when my form loads, controls it flickers for a second as original html style/width