[symfony-users] Re: How to prevent validation errors on first view of the form (before any submit)?

2008-05-10 Thread Guillermo Rauch
On May 10, 2008, at 11:23 PM, Daevid Vincent wrote:

> We have a system where the user puts in an invitation code and then  
> is redirected to a registration page.
> I can’t figure out how to prevent this from happening the first time  
> the user see’s the page.

Are you ::forward'ing or ::redirect'ing?

Guillermo Rauch
http://devthought.com


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] How to prevent validation errors on first view of the form (before any submit)?

2008-05-10 Thread Daevid Vincent
We have a system where the user puts in an invitation code and then is
redirected to a registration page.

I can't figure out how to prevent this from happening the first time the
user see's the page.

 



 

In case the image doesn't go though the list, it is basically.

 

? Username is required  ?  

Choose a Username  [_]

 

For every field on the form. L

 

I thought I read in the guide or in the Askeet tutorial a way to fix that,
but I've been hunting for hours and can't find it.

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---

<>

[symfony-users] Re: select_month_tag() not respecting NULL default [SOLVED]

2008-05-10 Thread Daevid Vincent

Well, I didn't get a single reply to this. Awesome.

Turns out you have to pass in '' NOT null as the documentation erroneously
says.

*sigh*

Maybe someone can update the docs to reflect the real deal, or else fix the
functions so that they work as designed (with null).

> -Original Message-
> From: symfony-users@googlegroups.com
[mailto:[EMAIL PROTECTED]
> On Behalf Of Daevid Vincent
> Sent: Thursday, May 08, 2008 4:57 PM
> To: symfony-users@googlegroups.com
> Subject: [symfony-users] select_month_tag() not respecting NULL default
> 
> 
> I am new to symfony. In some page that already existed, I've been tasked
to
> fix a bug. There is this block of code:
> 
>  array('style'=>'margin-left: 10px;')) ?> -
>  -
> '1900',
> 'year_end'=>'2008', 'include_custom'=>__('Year'))) ?>
> 
> But what happens is that when we load the page, the select boxes are all
set
> to the current date values. If I put "1" instead of "null", they obviously
> go to January 1st. I want them to each be defaulting to the top option of
> "Month", "Day" and "Year" so the user must choose the proper values.
> 
> What gives?
> 
>
http://www.symfony-project.org/api/1_0/DateFormHelper#method_select_month_ta
g
> 
> By default, the $value parameter is set to today's month. To override
> this, simply pass an integer (1 - 12) to the $value parameter. You can
also
> set the $value parameter to null which will disable the $value, however
this
> will only be useful if you pass 'include_blank' or
> 'include_custom' to the $options parameter.
> 
> (also, what's with the ' in the docs? Can't someone fix those? Why
even
> use that at all - just use ' and avoid this messy output)




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: error 500

2008-05-10 Thread Pedro Casado
Look your .htaccess file on web/

Pedro Casado


On Fri, May 9, 2008 at 7:46 AM, kusum <[EMAIL PROTECTED]> wrote:

>
> hi,
>  i defined this line in my action class function.
>
> $this->getResponse()->setStatusCode(500);
>
> now i can see error 500 page.Now i want to customize this page .i have
> defined error500.php page in web/errors directory and i have set the
> value of sf_debug false in web/frontend_dev.php file.but it showing
> symfony's 500 error page.what is wrong.
> >
>


-- 
Att,
Pedro Casado

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: customize error 500(include a partial)

2008-05-10 Thread Pedro Casado
You can customize your error 500 pages.

Just create a file called error500.php into web/errors/

Pedro


On Sat, May 10, 2008 at 10:58 AM, Nicolas Perriault <[EMAIL PROTECTED]>
wrote:

>
> On Sat, May 10, 2008 at 1:51 PM, kusum <[EMAIL PROTECTED]> wrote:
>
> > i am customizing error 500 pagein my application  and it is
> > working properly.I am including
> >  a partial in this error500.php page,which is defined in a module
> >  apps/frontend/modules/home/_check.php
>
> Custom 500 pages are standalone php script (symfony is not bootstraped
> when the file is executed.)
>
> > and php syntax is also not working
>
> Well, *that* is weird :)
>
> ++
>
> --
> Nicolas Perriault
> http://prendreuncafe.com/blog
> GSM: 06.60.92.08.67
>
> >
>


-- 
Att,
Pedro Casado

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Symfony validators documentation ...

2008-05-10 Thread Richtermeister

http://www.symfony-project.org/book/1_0/10-Forms#Standard%20Symfony%20Validators

Daniel

On May 9, 10:49 pm, "Reynier Perez Mira" <[EMAIL PROTECTED]> wrote:
> Hi every:
> I need to use some Symfony validators but I can't find a place to see doc 
> about they. Can any help me with a site or URL or book or anything?
> Cheers and thanks in advance
> Ing. Reynier Pérez Mira
> Grupo Soporte al Desarrollo - Dirección Técnica IP
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: select_tag validator

2008-05-10 Thread Richtermeister

I would probably write a custom validator similar to the compare
validator used for passwords..
This way, you can pass the state and the city to the validator and run
whatever validation you need on both..

Daniel

On May 9, 4:37 pm, James <[EMAIL PROTECTED]> wrote:
> You could store the state in a session variable when it's validated,
> then when the city is validated have it's validator check the session
> variable to see if it's correct.
>
> James
>
> On May 9, 2008, at 4:09 PM, Razvan Popa wrote:
>
>
>
> > Hello.
> > I have this situation where I have a select_tag (with states) ...
> > and a
> > remote_function that loads a second select_tag (cities).
> > I need to make a validator for these two selects. Any
> > ideeas/snippets/anything helpful about how I should go about this?
>
> > Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] object_input_tag problem

2008-05-10 Thread Richix

Hi

I have a scaffolding module, but, on edit form the object_input_tag()
print an
 the input have a text 'null' printed by
default. why? it can't be blank?

thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] oracle dates error on insert sql

2008-05-10 Thread Richix

hi,

I am trying to insert a date field, but the record save only  the date
and not the hour.

The column is type DATE, and with other programs I can save something
like "21/04/08 03:00:39 p.m.", but, using symfony save "21/04/08".

I send the data like ->setXXX(date('d-m-Y H:i:s')), where is the
problem ?

thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Invitation: symfony usergroup vienna kickoff meeting

2008-05-10 Thread klemens_u

I'd like to invite all fellow symfonians located in the eastern part
of Austria to our symfony usergroup kickoff meeting!

Mo. 19.05.2008, 19:00 - 22:00
werkzeugH (http://www.werkzeugh.at)
Schönbrunnerstr. 61
1050 Wien
Austria

Visit our XING-group for details and registration:
http://www.xing.com/group-20594.0aa187/5659712

We are currently using a XING-group until there is a solution
developed in symfony ;-)

;-) Klemens Ullmann
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: customize error 500(include a partial)

2008-05-10 Thread Nicolas Perriault

On Sat, May 10, 2008 at 1:51 PM, kusum <[EMAIL PROTECTED]> wrote:

> i am customizing error 500 pagein my application  and it is
> working properly.I am including
>  a partial in this error500.php page,which is defined in a module
>  apps/frontend/modules/home/_check.php

Custom 500 pages are standalone php script (symfony is not bootstraped
when the file is executed.)

> and php syntax is also not working

Well, *that* is weird :)

++

-- 
Nicolas Perriault
http://prendreuncafe.com/blog
GSM: 06.60.92.08.67

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] customize error 500(include a partial)

2008-05-10 Thread kusum

hi,
 i am customizing error 500 pagein my application  and it is
working properly.I am including
  a partial in this error500.php page,which is defined in a module
 apps/frontend/modules/home/_check.php

this is not working  in error500.php page and php syntax is also not
working



is it possible to include a partial and php syntax in error500.php
page.if it is possible than how can i do this
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Motivational Quote of the Day!~ [10 May 2008]

2008-05-10 Thread Sonia
  "Do not wait to strike till the iron is
hot;
but make it hot by striking."
-William B. Sprague

 

Forward it to all your friends and make their day.
brought to you by:
  MyEverydayPage.com

 

 

In Association with:

 

  cid:image001.jpg@01C8B1D1.DA422BB0
www.GoldenInspiration.com


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---

<>