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

2011-06-14 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 /Users/.../beta4/vendor/doctrine-dbal/lib/Doctrine/DB

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 fo

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

2011-06-14 Thread Christophe Beyer
t; field_name: _token > > Emanuel Winblad > > > > 2011/6/14 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 &

[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 because

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 li

[symfony-users] Form_row and a lot of parameters

2011-06-08 Thread Christophe Beyer
Hi, Is it possible to use the form_row block instead of this 3 lines, with the good parameters ? : {{ form_label(form.nom, 'MyName') }} {{ form_errors(form.nom) }} {{ form_widget(form.nom, { 'attr': {'class': 'red'}, 'help': 'MyHelp' }) }} I tried this : {{ form_row(form.nom, { 'label':'MyName

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 : >

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

2011-04-08 Thread Christophe Beyer
Exception' 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 f

[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 = $this->get('doctrine.orm.entity_mana

[symfony-users] CRUD method ?

2011-03-11 Thread Christophe Beyer
Hi, Where can I find documentation, examples or best practices for Creating, Reading, Updating and Deleting records in a DB with S2 and Doctrine2 : how to implement routes, controllers, forms, templates... ? Thanks, -- Christophe -- If you want to report a vulnerability issue on symfony, p

[symfony-users] Tests on request parameters

2011-03-01 Thread Christophe Beyer
meter ? In this case, I want an integer - 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 ?

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

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

2011-02-27 Thread Christophe Beyer
Le 27/02/2011 20:58, Christophe COEVOET a écrit : Le 27/02/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

[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] [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, Christo

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 > wro

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 > wrote: >> No, I didn't modify my config file in this way. >> >> What should I add in the config file ?

[symfony-users] Question about block

2011-02-11 Thread Christophe Beyer
My main HTML layout looks like that : {% block title 'Default title - example.com' %} I want to have only to write this in my controller layout : {% block title %}My title{% endblock %} instead {% block title %}My title - Default title - example.com{% endblock %} Ton re

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 > w

[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'); $resp

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

2011-02-09 Thread Christophe Beyer
doctrine:mapping:info > -- > Software Architect & Engineer > Blog: http://webmozarts.com > Twitter: http://twitter.com/webmozart > > > > 2011/2/9 Christophe Beyer : >> Hum... I got this error : >> >> [InvalidArgumentException] >> Command &quo

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 doctrine:

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

2011-02-09 Thread Christophe Beyer
he form with the Breve Entity 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\B

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

2011-02-08 Thread Christophe Beyer
eate fields" So, what is wrong ? My entity has an another name that "Breve", 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 symf

[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 po

[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(n

[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 to

[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