[symfony-users] symfony 1.4 - 2.0

2010-03-21 Thread miura
hello guys... you probably see this one coming and I know a lot of people want to know the answer of these questions how easy it will be to upgrade from 1.4 to 2.0 once it is ready? I've been reading the mail list for some time... it looks like starting a new project on 2.0 is bad decision

Re: [symfony-users] symfony 1.4 - 2.0

2010-03-21 Thread Bernhard Schussek
The same question has already been posted on the developer ML: http://groups.google.com/group/symfony-devs/browse_thread/thread/667915859bc378e5 Bernhard -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message

[symfony-users] Re: Select fields updating other form fields

2010-03-21 Thread xplo
Hello, I post the form each time a list field change. In the form class i call a custom method to update the criteria ( i guess it s called query in doctrine ... ) of my list field based on the default/sometime tainted/cleaned value depending of if the request is a post or not. I also would like

Re: [symfony-users] Re: how can I make the same query before each action ?

2010-03-21 Thread Damien Alexandre
You should realy not use myUser to deal with no user related data, it's wrong :) I don't know your need, but I suggest you to use a component. Just read the doc, it's simple as a include_partial, except that your variables come from an action in a components.class.php :-) My 2cts On Sat, Mar

[symfony-users] How to access user details with sfGuard

2010-03-21 Thread Fabrizio Scimia
Hello, I'm learning to use symfony and I have a question related to user details. I want to create a simple page that show the user details after the authentication. I created a frontend application and I installed the sfDoctrineGuardPlugin. I enabled the modules

Re: [symfony-users] How to access user details with sfGuard

2010-03-21 Thread Lea Hänsenberger
Hi Fabrizio, in action classes you can access the user with $this-getUser()-getGuardUser() and the profile with $this-getUser()-getProfile(). In a template you can access them with $sf_user-getGuardUser() ...-getProfile(). Cheers, Lea On Mar 21, 2010, at 17:06 , Fabrizio Scimia wrote: Hello,

Re: [symfony-users] How to access user details with sfGuard

2010-03-21 Thread Stéphane
Hi, You could do an admin-gen for the sf_guard_user (overload the plugin's one), then embed the profile form in your sfGuardUserForm::configure(); using $this-embedRelation(profile*); and hide the user properties you don't want to show (username, password, etc) using generator.yml configuration.

[symfony-users] Saving some data during insert, update, and deleting object?

2010-03-21 Thread verox
Hello guys, I have this i schema: Compedium: actAs: Timestampable: Sortable: DmVersionable: columns: name: { type: string(255), notnull: true } members:{ type: clob, extra: ckeditor } is_active: { type: boolean, notnull: true,

[symfony-users] Dynamic form validation

2010-03-21 Thread Vikos
Hi! (My english is not so perfect so previously sorry for mistakes!!!) I need a form witch can dynamically change the validator schema by the POST's datas. Db shcema: There is the workers. They have contacts ( mail. phone, mobile... homepage.. etc..). A workers have many of them. The worker need

[symfony-users] Re: Dynamic form validation

2010-03-21 Thread Vikos
Symfony version : 1.4 On márc. 21, 17:40, Vikos make.webp...@gmail.com wrote: Hi! (My english is not so perfect so previously sorry for mistakes!!!) I need a form witch can dynamically change the validator schema by the POST's datas. Db shcema: There is the workers. They have contacts (

[symfony-users] Re: Dynamic form validation

2010-03-21 Thread Richtermeister
Hey Vikos, the solution is to override the bind() (or doBind()) method and adjust the validators based on the values passed. Then you call the parent bind() method to trigger the actual validation. Daniel On Mar 21, 9:42 am, Vikos make.webp...@gmail.com wrote: Symfony version : 1.4 On

[symfony-users] Re: Dynamic form validation

2010-03-21 Thread xplo
Or do a callback validator Jon wants to validate a form value but the validation depends on another form field. As Jon does not know how to do it with symfony 1.1, he called the expert. This post will explain how to accomplish this kind of conditional validation by using a post validator.

[symfony-users] Error 500 backend application in production

2010-03-21 Thread Jose San Gil
Hi everybody, I'm working in a project with frontend and backend application. The index.php of the project points to the frontend app and all the actions work great in this app over the production server However, when I try to use the backend application, the problems start. If I try to login

Re: [symfony-users] Re: Using sf 2.0

2010-03-21 Thread Jonathan Wage
Hi, On Sat, Mar 20, 2010 at 1:07 PM, Sid Ferreira sid@gmail.com wrote: Hi Jon! Well, I know and understand. But at same time, Im thinking why would I build something, that will be stable only to the end of the year, that has no comercial use, with something that has a deprecation date