[symfony-users] Error on doctrine:schema:update

2011-06-15 Thread Christophe Beyer
Hi, I'm using the beta4, with MAMP on Apple Mac. I have this error on launching the doctrine:schema:update command : Warning: PDO::__construct(): [2002] No such file or directory (trying to connect via unix:///var/mysql/mysql.sock) in

[symfony-users] Forms / Disable CRSF protection

2011-06-14 Thread Christophe Beyer
Is it possible to disable the CRSF protection for one form ? What is the syntax of this option in the form config ? Thanks ! -- Christophe -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message

Re: [symfony-users] Forms / Disable CRSF protection

2011-06-14 Thread Christophe Beyer
Christophe Beyer cbe...@cap-tic.fr Is it possible to disable the CRSF protection for one form ? What is the syntax of this option in the form config ? Thanks ! -- Christophe -- If you want to report a vulnerability issue on symfony, please send it to security

Re: [symfony-users] Forms / Disable CRSF protection

2011-06-14 Thread Christophe Beyer
Found myself in the doc : http://symfony.com/doc/2.0/book/forms.html#csrf-protection I looked for CRSF instead of CSRF in the doc :) -- Christophe Le 14 juin 2011 à 14:42, Christophe Beyer a écrit : Thanks, but what I want is to disable the CRSF protection for only one form, not for all

Re: [symfony-users] Form_row and a lot of parameters

2011-06-09 Thread Christophe Beyer
Hello, Can someone help me ? Should I develop my own Twig function, or can I hope S2 provide (or will provide) what I need ? Thanks a lot, -- Christophe Le 8 juin 2011 à 09:09, Christophe Beyer a écrit : Hi, Is it possible to use the form_row block instead of this 3 lines

Re: [symfony-users] [S2] Doctine2 function addCustomDatetimeFunction

2011-04-11 Thread Christophe Beyer
Right, I had a tab at this line. Thanks ! Ok for the DQL functions, I don't want to upgrade my PR6, so I'll wait the first RC :) -- Christophe Beyer cbe...@cap-tic.fr Le 8 avr. 2011 à 18:21, Christophe COEVOET a écrit : Le 08/04/2011 18:03, Christophe Beyer a écrit : Ok thanks

Re: [symfony-users] [S2] Doctine2 function addCustomDatetimeFunction

2011-04-08 Thread Christophe Beyer
' with message 'Unable to parse line 28 ( mappings:).' i How can I solve this (without upgrading) ? Thanks ! Le 5 avr. 2011 à 17:23, Christophe COEVOET a écrit : Le 05/04/2011 15:03, Christophe Beyer a écrit : I want to use the Doctrine function addCustomDatetimeFunction on my EntityManager

[symfony-users] [S2] Doctine2 function addCustomDatetimeFunction

2011-04-05 Thread Christophe Beyer
I want to use the Doctrine function addCustomDatetimeFunction on my EntityManager. I tried this : $config = new \Doctrine\ORM\Configuration(); $config-addCustomDatetimeFunction('MONTH', 'Doctrine\ORM\Query\AST\Functions\Month'); // My custom function $em =

Re: [symfony-users] Normal and ajax version for a template

2011-03-01 Thread Christophe Beyer
OK. Ticket created : http://trac.symfony-project.org/ticket/9558 -- Christophe Beyer cbe...@cap-tic.fr Le 27 févr. 2011 à 22:03, Christophe COEVOET a écrit : Le 27/02/2011 21:56, Christophe Beyer a écrit : Ok, thanks ! It works fine in the controller, but the line {% extends ajax

[symfony-users] Tests on request parameters

2011-03-01 Thread Christophe Beyer
- assign a default value ? I know I can make this with plain PHP, with regexp, is_int or is_numeric... If I could do this with S2 it would make me happy :) And is it possible to make such tests/assignments in the routing files ? Thanks, -- Christophe Beyer cbe...@cap-tic.fr -- If you want

[symfony-users] Normal and ajax version for a template

2011-02-27 Thread Christophe Beyer
Hello, I want to display a template in two modes : the normal mode, embedded in the main layout, and an ajax mode; without duplicate my template of course. 1. In my controller, how can I check if the requested url is an ajax request (without adding any parameter) ? 2. In the Twig file, I

Re: [symfony-users] Normal and ajax version for a template

2011-02-27 Thread Christophe Beyer
/2011 20:48, Christophe Beyer a écrit : Hello, I want to display a template in two modes : the normal mode, embedded in the main layout, and an ajax mode; without duplicate my template of course. 1. In my controller, how can I check if the requested url is an ajax request (without adding any

Re: [symfony-users] [PR6] Using ESI tag renders nothing

2011-02-22 Thread Christophe Beyer
/.../symfony2/sandboxpr6/vendor/symfony/src/Symfony/Component/HttpKernel/Profiler/SQLiteProfilerStorage.php on line 155 503 Service Unavailable Who can help me ? Thanks, -- Christophe Beyer Le 11 févr. 2011 à 13:50, stof a écrit : On Fri, 11 Feb 2011 13:45:31 +0100, Christophe Beyer

[symfony-users] [PR6] Using ESI tag renders nothing

2011-02-11 Thread Christophe Beyer
Hi, Since PR6, my zones where I want to display content using ESI tags display nothing. This was OK in PR5. -- main layout : {% render 'MyBundle:Match:cadre' with {}, { 'standalone': true} %} -- controller : $response = $this-container-get('response');

Re: [symfony-users] [PR6] Using ESI tag renders nothing

2011-02-11 Thread Christophe Beyer
No, I didn't modify my config file in this way. What should I add in the config file ? I found nothing in the documentation :( -- Christophe Beyer cbe...@cap-tic.fr Le 11 févr. 2011 à 13:32, stof a écrit : On Fri, 11 Feb 2011 13:07:49 +0100, Christophe Beyer cbe...@cap-tic.fr wrote

[symfony-users] Question about block

2011-02-11 Thread Christophe Beyer
My main HTML layout looks like that : !DOCTYPE html html head meta http-equiv=Content-Type content=text/html; charset=utf-8 / title{% block title 'Default title - example.com' %}/title I want to have only to write this in my controller layout : {% block title %}My title{%

Re: [symfony-users] [PR6] Using ESI tag renders nothing

2011-02-11 Thread Christophe Beyer
Thanks, but the result is the same... :( -- Christophe Le 11 févr. 2011 à 13:50, stof a écrit : On Fri, 11 Feb 2011 13:45:31 +0100, Christophe Beyer cbe...@cap-tic.fr wrote: No, I didn't modify my config file in this way. What should I add in the config file ? I found nothing

Re: [symfony-users] Question about block

2011-02-11 Thread Christophe Beyer
This works great : {% block title %}My title - {{ parent() }}{% endblock %} Nothing about this tip in the documentation, I could'nt know this. Thanks ! -- Christophe Le 11 févr. 2011 à 14:00, stof a écrit : On Fri, 11 Feb 2011 13:53:00 +0100, Christophe Beyer cbe...@cap-tic.fr wrote

Re: [symfony-users] [S2PR6] Mapping a form for an entity

2011-02-09 Thread Christophe Beyer
file instead the BreveRequest file ? -- Christophe Beyer cbe...@cap-tic.fr Le 9 févr. 2011 à 10:16, Bernhard Schussek a écrit : Hi Christophe, In your configure() method, add the call $this-setDataClass('Name\Space\BreveRequest'); The namespace needs to be corrected, of course

Re: [symfony-users] [S2PR6] Mapping a form for an entity

2011-02-09 Thread Christophe Beyer
Hum... I got this error : [InvalidArgumentException] Command doctrine:schema:info is not defined. -- Christophe Le 9 févr. 2011 à 12:47, Bernhard Schussek a écrit : It already tells you the problem. BreveRequest need to be mapped. Try $ app/console

Re: [symfony-users] [S2PR6] Mapping a form for an entity

2011-02-09 Thread Christophe Beyer
://webmozarts.com Twitter: http://twitter.com/webmozart 2011/2/9 Christophe Beyer cbe...@cap-tic.fr: Hum... I got this error : [InvalidArgumentException] Command doctrine:schema:info is not defined. -- Christophe Le 9 févr. 2011 à 12:47, Bernhard Schussek a écrit

[symfony-users] [S2PR6] Mapping a form for an entity

2011-02-08 Thread Christophe Beyer
, is that the problem for an automatic mapping ? Thanks a lot ! -- Christophe Beyer cbe...@cap-tic.fr -- 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] Desactivate Twig auto escaping ?

2011-02-02 Thread Christophe Beyer
Hello, How can I desactivate the Twig auto escaping ? Thanks ! -- Christophe -- 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

[symfony-users] [S2PR5] Class 'Locale' not found on form creation

2011-01-28 Thread Christophe BEYER
Hello, I got this error : Fatal error: Class 'Locale' not found in /Users/./cache/dev/classes-726ce.php on line 1690 Here is my code : --- $em = $this-get('doctrine.orm.entity_manager'); $article = new Article(); $form = new Form('article', $article, $this-get('validator')); $form-add(new

[symfony-users] [S2PR5] ESI tag syntax in Twig file

2011-01-25 Thread Christophe BEYER
Hello, I want to use ESI tag on my S2 (PR5) website, in Twig templates. It seems not working, and I think the documentation is wrong : http://docs.symfony-reloaded.org/guides/cache/http.html?highlight=standalone#using-edge-side-includes {% render '...:list' with [], ['standalone': true] %} Is

[symfony-users] [S2PR5] SQLLiteProfilerStorage error in Profiler

2011-01-25 Thread Christophe BEYER
I got this error in my S2 PR5 website : Warning: SQLite3Stmt::execute() [sqlite3stmt.execute]: Unable to execute statement: constraint failed in /Users/me/symfony2/sandboxpr5/src/vendor/symfony/src/Symfony/Component/HttpKernel/Profiler/SQLiteProfilerStorage.php on line 147 Fatal error: Call