[symfony-users] Re: How change an admin generator filter to use a multiple choose select field

2009-12-08 Thread Joel Cuevas
I'm guessing, so try it and let us know. In your filter class add this: public function addDescriptionTypeIdColumnQuery(Doctrine_Query $query, $field, $value) { $query->leftJoin('r.DescriptionType d')->andWhereIn('d.id', $value); } Note the name of the method (it includes the camel-cased name of

[symfony-users] Re: i18n:extract not generating translation file

2009-12-08 Thread Joel Cuevas
You need to specify the target language in order to create its folder, i.e., symfony i18n:extract --auto-save frontend fr Note the "fr" at the end of the line. With this you should now have an /apps/frontend/i18n/fr folder with messages.xml inside it. The order (or location) of the optional para

[symfony-users] Disabling admin-generated actions

2009-12-08 Thread Joel Cuevas
Hi list, The thing is, in an auto generated admin module, if I don't want to use, lets say, the edit action (and I don't want that the users be able reach in any way), it's enough to delete the "edit" element from the actions array in the route collection to not generate its route or it compromise

[symfony-users] INVITACION - CURSO TALENTO DE TV

2009-05-27 Thread Joel Cuevas
Buen día Si tú o algún familiar tiene un hijo o sobrino entre los 8 y 15 años y no saldrán de vacaciones, te invito a que los envies al curso denominado DESARROLLO DE TALENTO TV, que se llevará a cabo en las instalaciones del Col. Anglo Mexicano (Coatzacoalcos) del 16 al 31 de Julio del 2009, es d

[symfony-users] RESTfull post: CSRF attack detected

2009-02-23 Thread Joel Cuevas
Hi list! Is there any way to avoid (or delude) the CSRF attack protection (sf 1.2) when submiting a form via REST but without disabling it for normal web browser requests (I mean, directly in the form)? I'm using exactly the same action for both requests (just with diferent sf_format). Thanks! -

[symfony-users] Re: I18N for Fields title - How to ?

2009-01-24 Thread Joel Cuevas
Does Fabien have made any comments about this? I don't know how to achieve it neither. :s I need to find a way ASAP. - Joel 2009/1/24 fredlab > Hi, > > No I did not solve my problem but I found that the symfony extract > task currently does not support the extraction of label so that you > can

[symfony-users] Re: Unit testing an extended save method using sfContext

2009-01-23 Thread Joel Cuevas
Hi juro! Maybe at this point you've already solved your problem, but I'll post a solution anyway for future references, other people references. You can create an instance of sfContext in your unit bootstraping script, something like this: $projectConfig = new sfProjectConfiguration($path); $ap

[symfony-users] Re: Unit testing an extended save method using sfContext

2009-01-23 Thread Joel Cuevas
Hi juro! I think that at this point you've maybe solved your problem, but I'll answer the question anyway for future references, other people reference. It's always a good practice to check out symfony's code, it's a very good self-documentation. For this, the unit tests of the user classes are

[symfony-users] Re: I18N for Fields title - How to ?

2009-01-22 Thread Joel Cuevas
Did you solve your problem? I have the same here... Hope you can help... Thanks! On 6 dic 2008, 15:11, fredlab wrote: > Ok ! it seems no one can help. > > I have to wait for the end of the jobeet tutorial. I hope it will give > the anwser. > > Regards, > > Frédéric --~--~-~--~~-

[symfony-users] Re: dynamically change database connection.

2009-01-19 Thread Joel Cuevas
Hi Ridvan! Could you please post the solution (or the link) for sf 1.2? Thanks! On 10 dic 2008, 06:18, "Ridvan Lakas ng Bayan S. Baluyos" wrote: > Thanks Thomas! > > This is exactly what I've been looking for. I've found a similar solution > but it pertains to the 1.2 branch. I did a little ad

[symfony-users] Re: Setting the NEXT response headers

2009-01-14 Thread Joel Cuevas
Hi again! I will just add some comments that maybe will help (me :p). My original problem raised when I was creating from scratch something similar to sfGuardPlugin (but not so similar) and I was testing the logout action. Evidently the logout action forwards me to an another action. And it was

[symfony-users] Setting the NEXT response headers

2009-01-14 Thread Joel Cuevas
Hi everybody! Is there any way to set the headers of the next response? I mean, for example, in an action, before a redirection, I want to disable the http cache (with pragma) for the next one. But I want to do this selectively, not to disable the http cache for every call. If somebody know some

[symfony-users] Re: Validation converters when no error ocurrs

2008-04-17 Thread Joel Cuevas
_date: sfDateValidator: compare: '+1 hour' operator: > compare_error: El concurso debe ser creado con al menos 1 hr. de anticipación. longness: myLongnessValidator: Thanks again. - Joel On 17 abr, 10:08, Joel Cuevas <[EMAIL PROTECTED]> wrote: > Hi group

[symfony-users] Validation converters when no error ocurrs

2008-04-17 Thread Joel Cuevas
Hi group! I've noticed that the converters defined in the validation.yml file within the fillin definitions are only applied when the validation fails and not when the form validates correctly. When the request succeeds whitout errors, I have to rewrite the functions of the converters in the act