Re: [symfony-users] Existing site and symfony integration

2010-01-29 Thread alessandro cinelli
On Fri, Jan 29, 2010 at 2:20 PM, Eno wrote: > On Fri, 29 Jan 2010, alessandro cinelli wrote: > > > I'm doing a huge refactor of an existing big site and i would like to > port > > it to symfony. > > The problem is that i can't wait to full migrate the site to symfony > > framework before going l

[symfony-users] [Form Framework] Best way to implement change password functionality?

2010-01-29 Thread Stephen Melrose
Hi, I'm trying to get my head around the form framework in Symfony 1.4. I've read the incredibly detailed section in the 'More with symfony' book, but I'm still a but unsure how to implement a simple 'Change password' functionality. The requirements are pretty basic, 1. There'll be two fields,

Re: [symfony-users] Re: External user authentication with sfDoctrineGuardPlugin

2010-01-29 Thread ashton honnecke
The way that I addressed this was to: * Create a custom form for the signin process * In that form, replace the validator (change app_sf_guard_plugin_signin_form) * In the new validator, replace the code that throws an error if the user is not found in the database with code that authenticates a

[symfony-users] cmt faire pour configurer la directive de configuration ServerName

2010-01-29 Thread Moi
ou es ce que je peut trouver la directive de configuration ServerName pour lui ajouter les parametre du serveur virtuels . et avant j'ai ouvert le fichier HTTP.CONF et y avai ça # # MySQL server administration. # Alias /phpMyAdmin /var/www/myadmin DirectoryIndex index.php Options Indexes Include

Re: [symfony-users] Re: External user authentication with sfDoctrineGuardPlugin

2010-01-29 Thread ashton honnecke
Both ways of authentication would be fine, but my main goal is to allow users to login without requiring them to exist in the sfGuardUserTable. I'm building a site for a client that has an api that they want me to use to authenticate users against. I don't want to have to insert into sf_user_guar

Re: [symfony-users] Set default dsn with env vars?

2010-01-29 Thread Tennis Smith
Hi Eno, THanks for the reply. See inline. -T On Fri, Jan 29, 2010 at 5:10 AM, Eno wrote: > On Thu, 28 Jan 2010, Tennis Smith wrote: > > > I'm trying to set my default db based on an environment variable. The > > definition looks like this in my databases.yml file: > > > > test: > > foo: >

[symfony-users] [1.4.1] (Propel) Admin Generator Behavior - Why does it work like this?

2010-01-29 Thread Stephen Melrose
Hi there, I've been having some 'issues' with the admin generator (Propel version). The HTML generation behavior between the list view and the form view is very different, and I'd like to know why, as the form view works better (and as expected) compared to the list view. I have the following YAM

[symfony-users] Re: Doctrine inheritance and i18n forms

2010-01-29 Thread Thibault Jouannic
Hi, Same version here, sf1.4 and doctrine 1.2. I've got the same result as you. The base class inheritance schema is correct. The problems appears if you add the I18n behavior to you schema. Read the ticket I wrote to fully understand the problem, I'v joined an example schema.yml. For the recor

[symfony-users] Re: New element with parameter

2010-01-29 Thread Tom Ptacnik
I think you have to possibilities: 1) send it via URL 2) send it via session I would preffer to use option 1) On 28 led, 21:01, Diego Bello wrote: > Hi guys, > > I have a site (frontend) with a list of deploys. Now, each deploy can > have several activities. When I click on new activity, I have

Re: [symfony-users] Existing site and symfony integration

2010-01-29 Thread Eno
On Fri, 29 Jan 2010, alessandro cinelli wrote: > I'm doing a huge refactor of an existing big site and i would like to port > it to symfony. > The problem is that i can't wait to full migrate the site to symfony > framework before going live, but I have to do it step by step, small > integrations

Re: [symfony-users] Set default dsn with env vars?

2010-01-29 Thread Eno
On Thu, 28 Jan 2010, Tennis Smith wrote: > I'm trying to set my default db based on an environment variable. The > definition looks like this in my databases.yml file: > > test: > foo: > class: sfPropelDatabase > param: > dsn: 'mysql://root:@localhost/test_foo'

[symfony-users] Re: Making sure a login id only has one session at any moment

2010-01-29 Thread Tom Ptacnik
My solution - when I'm not using sfGuard 1. during user login create an unique id (can be session id) and store it to the session[session_id] and to the database to this user row e.g. column login_session 2. every page load you are testing if user is logged - probably testing if some session e.g.

Re: [symfony-users] How to access attributes of a class

2010-01-29 Thread Gareth McCumskey
Which class and attribute? If its a symfony class there is probably a getter/setter method for it and then that would be the best way. Simple reason why getter/setter methods are better than direct access is that you can then alter the way that variable is returned later (maybe you add additional

[symfony-users] Re: External user authentication with sfDoctrineGuardPlugin

2010-01-29 Thread Tom Ptacnik
Of cource you can overwrite the sfGuardAuth module if you don't want to use it... I thought that you want to use both ways of autentification. On 28 led, 18:38, ashton honnecke wrote: > Thanks! > > So if I am understanding you, you are telling me that there is no way > to do this with the curren

[symfony-users] Re: CheckBox at Server Side

2010-01-29 Thread Andro
$values = $request->getParameter($this->form->getName()) gets an array with all values of form. And $values['name_of_your_checkbox'] will get the value if checkbox is checked... On 29 Jan., 03:30, mandyllanes wrote: > Hi, > > I have a field checkbox in my form. In de sfAction class I want know >

[symfony-users] Re: How to access attributes of a class

2010-01-29 Thread Andro
Using getter/setter is the better coding style.. but if the attributes are public you can access them directly, too. On 29 Jan., 11:16, ruigoncalves wrote: > Hi there! > > How can I access the attributes of a class? By the name of the > attribute or I have to use the appropriate getter/setter? >

Re: [symfony-users] Re: Definitive guide for 1.3 and 1.4

2010-01-29 Thread Gareth McCumskey
As it stands right now symfony has W more documentation than any comparable framework out there. I think you are suffering from a case of being spoilt too much by what symfony provides so that anything "removed" is a big deal. I started this discussion not as a complaint but as a query/sug

Re: [symfony-users] Customize sfGuardAuth forms

2010-01-29 Thread Javier Garcia
On 01/29/2010 03:36 AM, MartinB wrote: is there a better place so that I can upgrade the plugin and then not have to make this change again? Yes, you should write it at lib/form/doctrine/sfDoctrineGuardPlugin/sfGuardGroupForm.class.php and /sfGuardGroupPermissionForm. Javi -- You recei

[symfony-users] Re: How to make LEFT JOIN in subquery which is in WHERE condition?

2010-01-29 Thread MaEcTPo
Thanks, I think, that I found my mistake. I have to use table alias in LEFT JOIN, like LEFT JOIN ar.Busstops, but I forgot, because it was at 2 AM and was really tired... On Jan 29, 10:51 am, wissl wrote: > Try to use the table names instead of the class names in the subquery. > > On 29 Jan., 00:

Re: [symfony-users] Re: Doctrine inheritance and i18n forms

2010-01-29 Thread Stéphane
Hi, I'm using sf1.4, doctrine1.2. I have a class and an extending class. Got generated doctrine models and forms, and the extending class's form is inheriting from its super class' form. vsPage inherits vsBasicpage and I get this in the base form class of the vsPage : "abstract class BasevsPage

[symfony-users] Re: Doctrine inheritance and i18n forms

2010-01-29 Thread Thibault Jouannic
Created the ticket. You can see it here : http://trac.symfony-project.org/ticket/8199 Regards. -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group

Re: [symfony-users] Re: Definitive guide for 1.3 and 1.4

2010-01-29 Thread Fabien Potencier
On 1/29/10 10:19 AM, Skyblaze wrote: I don't want to spam or to offende anyone i just want to see the reality. Ok it is an open source project and bla blablabut the real fact is that this defenitive guide little update (with also two important chapters left out from the update) and imho a no

Re: [symfony-users] Re: Definitive guide for 1.3 and 1.4

2010-01-29 Thread Fabien Potencier
On 1/29/10 10:19 AM, Skyblaze wrote: I don't want to spam or to offende anyone i just want to see the reality. Ok it is an open source project and bla blablabut the real fact is that this defenitive guide little update (with also two important chapters left out from the update) and imho a not

[symfony-users] How to access attributes of a class

2010-01-29 Thread ruigoncalves
Hi there! How can I access the attributes of a class? By the name of the attribute or I have to use the appropriate getter/setter? Thanks in advance, Best regards! -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send em

[symfony-users] Re: Definitive guide for 1.3 and 1.4

2010-01-29 Thread Skyblaze
I don't want to spam or to offende anyone i just want to see the reality. Ok it is an open source project and bla blablabut the real fact is that this defenitive guide little update (with also two important chapters left out from the update) and imho a not decent api documentation won't do anyt

[symfony-users] Existing site and symfony integration

2010-01-29 Thread alessandro cinelli
Hi, I'm doing a huge refactor of an existing big site and i would like to port it to symfony. The problem is that i can't wait to full migrate the site to symfony framework before going live, but I have to do it step by step, small integrations and refactors like dailymotion case history. What i

[symfony-users] Re: How to make LEFT JOIN in subquery which is in WHERE condition?

2010-01-29 Thread wissl
Try to use the table names instead of the class names in the subquery. On 29 Jan., 00:54, MaEcTPo wrote: > I wrote a raw SQL, like this: > > SELECT b2.title, r.title > FROM route r > LEFT JOIN busstop_route b ON (r.id = b.route_id) > LEFT JOIN busstop b2 ON b2.id = b.busstop_id > WHERE b2.id <> 3