[symfony-users] Re: 2009 Symfony Developers Survey Results

2009-06-16 Thread Sid Bachtiar
Interesting little stat to add I written two articles about implementing login using email for 1.0 and 1.2 (all using sfGuardPlugin and Propel) For 1.0: http://bluehorn.co.nz/2009/04/29/implementing-email-login-with-sfguardplugin/ For 1.2: http://bluehorn.co.nz/2009/06/12/symfony-12-propel-and

[symfony-users] Re: sfForm - validation error - field repopulation - how does it work?

2009-06-16 Thread Bernhard Schussek
Hi Klemens, It's a little buried, but when you get to it it's pretty easy. The relevant code is in sfForm::getFormFieldSchema(). In this method, the form field schema is created, which is, in fact, a list of form widgets bound to specific values. Here is an excerpt of lib/form/sfForm.class.php,

[symfony-users] Problem backend

2009-06-16 Thread juaninf
Wenas, I have a problem when I create my backend, in jobeet tutorial , because when I want make unset in the JobeetJobForm and JobeetCategoryForm, this not working :(, I despite the fact that I maked php symfony cc.help me please --~--~-~--~~~---~--~~ You received

[symfony-users] Re: where does symfony hard-code paths?

2009-06-16 Thread Eno
On Jun 16, 12:49 am, Jake Barnes wrote: > You are sending me to a URL that has no relevance to what I wrote. Did > you mean to post this in a different thread? The chapter therein describes how to customize symfony. You need to edit the configuration of your controller so it refers to the newl

[symfony-users] How to use generated content in an action

2009-06-16 Thread Loris
Hi, all. I'd like to develop a plugin that allows to produce and serve OpenOffice documents. Since OO files are fundamentally zip files that contain an xml file (named content.xml), I'd like to produce this file with a template, and then use the file that I obtained zipping it and delivering it.

[symfony-users] sfDatagridPlugin join tables

2009-06-16 Thread Steve Sanyal
Hi, Has anyone tried joining tables using the sfDatagridPlugin? I'd like to do this, but as far as I can tell a database based grid is linked to a single table map. If it can't do this out of the box, I'll change it so it can, but I'd like to avoid this if possible. Thanks, Steve --~--~--

[symfony-users] Re: Problems with i18n

2009-06-16 Thread passkey
Hi, try renaming your files to: * Deutsch: messages.de.xml * Spanish: messages.es.xml * French: messages.fr.xml And make sure the symfony cookie is clear everytime you switch the language. On Jun 16, 7:01 pm, Reynier Pérez Mira wrote: > Hi every: > I'm developing a web application and I need to

[symfony-users] Problems with i18n

2009-06-16 Thread Reynier Pérez Mira
Hi every: I'm developing a web application and I need to show the content for now in this 4 languages: English, Spanish, French y Detusch. I read slowly the chapter 19 from Jobeet book. I created the component, the template and the action. Additionally I created 3 files: * Deutsch: messages.de

[symfony-users] doctrine:generate-crud task leads to Default Context error

2009-06-16 Thread Jess OVR
Hi Symfo addicts ! I've posted my issue on the forum ( http://forum.symfony-project.org/index.php/t/21312/ ) but don't get any answer yet. I need to quickly prototype my project, so I try my luck in this group. I really don't get why it simply does not work :/ thank you !! Jess --~--~-

[symfony-users] Re: Foreign-key to self in schema?

2009-06-16 Thread E_lexy
Indeed Symfony permits i, but I have had trouble getting fixtures to load on tables with foreign keys to itself. It comes down to a chicken and egg situation. For instance: user: id: ~ created_by_user_id: { type: integer, required: true, foreignTable: user, foreignReference: id } will work b

[symfony-users] Re: Many to many relationship with additional fields in the relationship table

2009-06-16 Thread Carlos Mafla
I'm using doctrine On Jun 13, 8:15 am, Garakkio wrote: > On Jun 11, 6:11 pm, gigo6000 wrote: > > > Hi, I'm really stuck right now with the new symfony 1.2 form > > framework, I'm trying to create a form to handle a many to many > > relationship with payload, that is including additional fields

[symfony-users] Re: sfForm - validation error - field repopulation - how does it work?

2009-06-16 Thread klemens_u
Anyone? Perhaps one of the core devs can give a short explanation of how the repopulation of a form in case of a validation works? Thanks! On 9 Jun., 15:53, klemens_u wrote: > Hi all, > > I'm hunting down a problem with sfForm in the state of an validation > error. Somehow for one field the wro

[symfony-users] Re: Caching per-user pages and security

2009-06-16 Thread passkey
Ah I understand, i had the same issue before and my solution was what you're thinking to do, move the code to be cached in a component, then in the action make a include_component() with respective parameter, e.x: include_component('myModule/myComponent',array('params' => $params, 'user_id' => $sf

[symfony-users] Re: Caching per-user pages and security

2009-06-16 Thread Phil Moorhouse
Just to be clear, I'm not using the passed user_id GET var in the URL for finding the data on a non-cached page, it is retrieved using a user_id which is stored in the session when the user first logs in - this way I can be sure that the logged in user can only see their data if the page is genera

[symfony-users] Re: where does symfony hard-code paths?

2009-06-16 Thread Fabien Potencier
2 possibilities: * The path is hardcoded in the config/ProjectConfiguration.class.php * You use a PHP accelerator and you need to restart Apache Fabien -- Fabien Potencier Sensio CEO - symfony lead developer sensiolabs.com | symfony-project.org | fabien.potencier.org Tél: +33 1 40 99 80 80