RE: [symfony-users] CSRF Protection via GET

2010-08-30 Thread Benoit Montuelle
Hello, If you use a form to generate CSRF token, juste put a method="get" attribute in your form opening tag. Otherwise I think you could use a specific route with named parameter, and use a form only to generate and validate the token. Benoit -Original Message- From: Super-OTR.de

[symfony-users] [Symfony2]: Some questions about console and bundles

2010-08-30 Thread Dennis Benkert
Hi, during the last days I again had the chance to take a look at Symfony2 again. After some search through the mailing list and the documentation I have some questions that came to my mind and the answers may be helpful for others, too. The console script is always located in a specific applicat

Re: [symfony-users] "sfGuardUser" with an alias of "s" in your query does not reference the parent component it is related to.

2010-08-30 Thread Sebastien Armand [Pink]
The left join with Doctrine works on the Relation defined in the schema.yml (or not, depending if you're using this way to define your model). In a doctrine query like this, you need to use that relation name and use the prefix of the class you're already querying to it. So for example: model = c

[symfony-users] CSRF Token on AJAX batch form fails, why?

2010-08-30 Thread Gustavo Adrian
Hi, I'm creating my own admin generator with heavy use of AJAX. Every CRUD action works fine, except with the batch actions. I've tried to use the same code that is used on the original admin generator but it keeps throwing "CSRF attack detected". I have a form that wraps a table, with each row ha

[symfony-users] CSRF Protection via GET

2010-08-30 Thread Super-OTR.de
Hello, is it possible to use the CSRF Protectionf or GET Links ? So its just another variable /protection/ . Thanks -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the

[symfony-users] problems with templates new

2010-08-30 Thread vero
I have in my schema: project: ... owner: { type: varchar, size: 128, foreignTable:sf_guard_user, foreignReference: username, required: true, onDelete: cascade } ... If I include in the unset owner, I have an error. But if I don't include owner, how I put the owner in the documents. The user can pu

Re: [symfony-users] Re: Coloured command prompt output in Windows

2010-08-30 Thread Augusto Flavio
Hi Paulo, if you understand portuguese you can check this: http://augustomorais.wordpress.com/2010/02/01/symfony-cli-colorido-cygwin/ Bye Augusto Morais 2010/8/30 Paulo Ribeiro > Hi! > > I forgot to mention that in some cases you must follow the steps in > > http://www.symfony-zone.com/

[symfony-users] Trying to call an object method.

2010-08-30 Thread Javier Garcia
Hi, I have created an object method called getContenidoParcial(). When i call it, i get the error "Unknown record property / related component "contenido_parcial" on "Mensaje"" I created the method I say inside the Mensaje class this way: class Mensaje extends BaseMensaje { public func

[symfony-users] Routing [ Method + Type ]

2010-08-30 Thread Super-OTR.de
Hello, got some problem with understanding what the options "method" and "type" do in the routing.yml. Espacially the type:list. Could some1 explain that to me ? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this mes

[symfony-users] Re: Unsecure module into secure application

2010-08-30 Thread maxpowel
You are right but login page is defined in settings.yml, for example: login_module: sfGuardAuth login_action: signin On 30 ago, 07:44, Tom Ptacnik wrote: > I think you can, because login page is unsecured action in the secured > app... > > On 28 srp, 03:28, Alvaro Ga

[symfony-users] Doctrine, I18N behavior and migrations.

2010-08-30 Thread Simone Fumagalli
Hello. In my project I've some tables with the doctrine I18N behavior. When I create the initial migration everything is fine but at the first change Symfony also add a drop for the table "language" in the "up" method. Due there are no model "languages" when I run doctrine:migrate I get an error

Re: [symfony-users] Re: Doctrine2 & symfony 1.4

2010-08-30 Thread Jonathan Wage
Russ, is it possible to move the plugin to git? - Jon On Mon, Aug 30, 2010 at 1:32 AM, Maxim Oleinik wrote: > > Have you even tried to contribute to the original plugin first? > > It would be nice if the changes can be made in the original > sfDoctrine2Plugin instead of having 2 of them. > > Rig

[symfony-users] Re: Coloured command prompt output in Windows

2010-08-30 Thread Paulo Ribeiro
Hi! I forgot to mention that in some cases you must follow the steps in http://www.symfony-zone.com/wordpress/2009/10/15/colorize-your-windows-console-output/ . Cheers! Paulo On 29 ago, 10:19, Paulo Ribeiro wrote: > Hello! > > for you guys that like me until yesterday had no fun looking at the

[symfony-users] Escaped Form

2010-08-30 Thread Tomen Meta
I checked out the current PR3 Branch from symfony-sandbox and tried to build a Form with it (since it didnt work for me with PR2). My controller contains a register action: public function registerAction() { $user = new User(); $form = new Form('user', $user, $this->conta

[symfony-users] Re: The service "router" does not exist.

2010-08-30 Thread Tomen Meta
This seems to have changed from the tutorial. Try this: get('router')->generate('register',array()) ?> On 28 Aug., 12:09, Stephan Ebelt wrote: > Hello, > > I am trying to get the sandbox HelloKernel.php file adopted to the latest HEAD > of Symfony2 (271b9637). It took a number of things to fix a

[symfony-users] sfDoctrineGuardPlugin 1.0.4 login using username field

2010-08-30 Thread Dirk Conzelmann
Hello, I am using Symfony Version 1.4.1 together with the dfDoctrineGuardPlugin. Everything worked fine out of the box. My question: How can I make the Email field optional. I want the users to be able to login without using their email- address. Also I want to create new users which don't have em

[symfony-users] Re: a good IDE for Symfony

2010-08-30 Thread ryr
try JetBrains PhpStorm -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.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.co

Re: [symfony-users] [Symfony2] The service "router" does not exist.

2010-08-30 Thread Stephan Ebelt
this works, thanks. Didnt notice that branch in the first place. stephan On Sat, Aug 28, 2010 at 02:49:14PM +0200, Fabien Potencier wrote: > Use the sandbox PR3 tag. > > Fabien > > -- > Fabien Potencier > Sensio CEO - symfony lead developer > sensiolabs.com | symfony-project.org | fabien.potenci

[symfony-users] Pagination works with table but not with query

2010-08-30 Thread Social It
Hello: I am trying to paginate a query on a debate with a lot of records. Paginating the table works fine, but when I add the query, even with a limit, the script times out. Here is the code: $query=Doctrine_Query::create() ->select('c.name, d.phone') ->from('company c, companyDetails d') ->where(

[symfony-users] Pagination works with table but not with query

2010-08-30 Thread Social It
Hello: I am trying to run a query on two tables and paginate the results. My db is massive and will crash the server if all results are pulled. sfDoctrinePager seems to limit the results when I just pull straight from a table, but when I try to set a query it lags and then crashes. Do I need to put

[symfony-users] "sfGuardUser" with an alias of "s" in your query does not reference the parent component it is related to.

2010-08-30 Thread Inform4tic4mente
I got the error reported in subject when tryng to do something like this: public function addWithUserQuery (DoctrineQuery $q = null) { if (is_null($q)) { $q = $this->createQuery(); } $q->leftJoin('sfGuardUser s'); return $q; } in a tabl

Re: [symfony-users] Re: headers already sent

2010-08-30 Thread Stéphane
You mean you are writting HTML within actions ? Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Mon, Aug 30, 2010 at 3:18 PM, bibob wrote: > Hi, > If I write "return sfView::NONE;" at the end of the function

[symfony-users] Re: headers already sent

2010-08-30 Thread bibob
Hi, If I write "return sfView::NONE;" at the end of the function, the problem is solved, but I'm not sure that it is very clean and elegant. I rather think that I have to rewrite the functions and expurgate all the HTML instructions from them. Thank you all for your help. On 25 août, 19:11, Floria

[symfony-users] How should I manipulate columm values of a record

2010-08-30 Thread Marcio Pozzato
Hi, Could you help me about DAY 3, The ORM? After generated the PHP Classes, they put the codes below that can be manipulated, but how do I proceed? Should I insert this codes into the class codes? Which classes? "The column values of a record can be manipulated with a model object by using some a