[symfony-users] Re: Unrecognized options secret under framework.csrf_protection

2011-04-29 Thread Carlos Sánchez
change your app/config.yml file --- before framework: charset: UTF-8 error_handler: null csrf_protection: enabled: true secret: xx --- after framework: charset: UTF-8 error_handler: null secret: xx

Re: [symfony-users] Re: Unrecognized options secret under framework.csrf_protection

2011-04-29 Thread Erkhembayar Gantulga
Thanks *Carlos*. It works.But there is some warning shows. Notice: Undefined index: secret in /home/sfprojects/symfony-standard/vendor/bundles/Symfony/Bundle/WebConfiguratorBundle/Step/SecretStep.php on line 31 -- If you want to report a vulnerability issue on symfony, please send it to

[symfony-users] Re: link between frontend and backend

2011-04-29 Thread Peter
You could set them up as seperate websites or you link to http://www.yoursite.com/backend.php to get to the backend or use rewrite rules in your apache config or .htaccess file to map /backend to backend.php. If your frontend app is served by default you just link to / from your backend

[symfony-users] [sf2] Unrecognized options secret under framework.csrf_protection while updating via git

2011-04-29 Thread Nico
Hi, Sorry if this message is not appropiate to this list, I've installed a couple of days ago sf2 PR12 and I've been working with it on a new project. Once a day I use the bin/vendors.sh script to update the code to the latest changes, and today I'm getting this error right after

Re: [symfony-users] [sf2] Unrecognized options secret under framework.csrf_protection while updating via git

2011-04-29 Thread Erkhembayar Gantulga
change your app/config.yml file --- before framework: charset: UTF-8 error_handler: null csrf_protection: enabled: true secret: xx --- after framework: charset: UTF-8 error_handler: null secret: xx

[symfony-users] [symfony2] parameters.ini

2011-04-29 Thread robjensen82
What's the point in the parameters.ini? why not just stick to config.yml? -- 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

Re: [symfony-users] [symfony2] parameters.ini

2011-04-29 Thread David Buchmann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 29.04.2011 12:09, schrieb robjensen82: What's the point in the parameters.ini? why not just stick to config.yml? the idea is that config.yml is under version control, while parameters.ini contains confidential data like database password and

[symfony-users] Symfony2 theming

2011-04-29 Thread umpirsky
I want basic theming support in my Symfony2 project, so I wanted to have separated static files (css, js, img) for each theme. I have tried to add assetic: read_from: %kernel.root_dir%/../web/themes/mytheme but this took no effect, my {{ asset('css/style.css') }} are still referencing

[symfony-users] Re: [symfony2] parameters.ini

2011-04-29 Thread robjensen82
Thanks for the reply David. I would have thought config_prod.yml would have been useful for exactly the situation you're describing. O well I've managed to chop it out. Rob On Apr 29, 11:20 am, David Buchmann david.buchm...@liip.ch wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am

[symfony-users] Re: Symfony2, Twig and I18N

2011-04-29 Thread Elia Contini @Phiware
Thank you Skaldrom. Everything works now. -- 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] DoctrineMongoDBBundle missing in Beta1?

2011-04-29 Thread Conrad
I was just trying to update my project from pr12 to beta and found out that the DoctrineMongoDBBundle is missing... did it move somewhere else? Where can I get it? Thanks, Conrad -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You

[symfony-users] Aw: DoctrineMongoDBBundle missing in Beta1?

2011-04-29 Thread Conrad
nevermind, I got it from here: https://github.com/symfony/DoctrineMongoDBBundle git submodule add git://github.com/symfony/DoctrineMongoDBBundle.git Symfony/vendor/symfony/src/Symfony/Bundle/DoctrineMongoDBBundle -- If you want to report a vulnerability issue on symfony, please send it to

[symfony-users] Aw: DoctrineMongoDBBundle missing in Beta1?

2011-04-29 Thread Conrad
nevermind, I got it from here: https://github.com/symfony/DoctrineMongoDBBundle git submodule add git://github.com/symfony/DoctrineMongoDBBundle.git Symfony/vendor/symfony/src/Symfony/Bundle/DoctrineMongoDBBundle -- If you want to report a vulnerability issue on symfony, please send it to

Re: [symfony-users] DoctrineMongoDBBundle missing in Beta1?

2011-04-29 Thread Fabien Potencier
On 4/29/11 4:31 PM, Conrad wrote: I was just trying to update my project from pr12 to beta and found out that the DoctrineMongoDBBundle is missing... did it move somewhere else? Where can I get it? As the release timeline for the MongoDB bundle is different from Symfony2, it has been moved

Aw: Re: [symfony-users] DoctrineMongoDBBundle missing in Beta1?

2011-04-29 Thread Conrad
Thanks Fabien, since I started my project a couple of weeks ago, I always used the latest doctrine-common instead with the one symfony comes with and never had bigger problems with annotations (except creating indexes and sometimes validation) - do you think there is going to be bigger trouble?

[symfony-users] Doctrine insert_id

2011-04-29 Thread sergio
Hi, could anyone tell me how can I get the last insert id with doctrine2? Thanks in advance Enviado desde mi dispositivo BlackBerry® -- 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

Aw: Re: Aw: Re: [symfony-users] DoctrineMongoDBBundle missing in Beta1?

2011-04-29 Thread Conrad
ok Thanks, then I need to roll back to pr12 and wait for it to be avaiable -- 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

Re: [symfony-users] Doctrine insert_id

2011-04-29 Thread Gediminas Morkevicius
hi since doctrine does everything in a transaction, there is no such thing as last inserted id. you should simply provide a getId() getter in your domain object. and use: $entity = new Something; $entity-setWhatever('whatever'); $em-persist($entity); $em-flush(); // after flush all persisted

Re: Aw: Re: Aw: Re: [symfony-users] DoctrineMongoDBBundle missing in Beta1?

2011-04-29 Thread Fabien Potencier
On 4/29/11 4:57 PM, Conrad wrote: ok Thanks, then I need to roll back to pr12 and wait for it to be avaiable No need to rollback to PR12. It won't change anything. The MongoDB bundle is not compatible with Symfony 2.0 and won't be until Doctrine 2.1 is released. Fabien -- If you want to

Aw: Re: Aw: Re: Aw: Re: [symfony-users] DoctrineMongoDBBundle missing in Beta1?

2011-04-29 Thread Conrad
Alright, thanks for cheering me up :) I guess it needs some guts anyway to do it all the bleeding edge way ;) Thanks for the nice work and have a good weekend! -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this

Re: [symfony-users] Doctrine insert_id

2011-04-29 Thread sergio
Thanks a lot. I musn't think in flat Mysql Enviado desde mi dispositivo BlackBerry® -Original Message- From: Gediminas Morkevicius gediminas.morkevic...@gmail.com Sender: symfony-users@googlegroups.com Date: Fri, 29 Apr 2011 17:02:02 To: symfony-users@googlegroups.com Reply-To:

[symfony-users] EWZRecaptchaBundle

2011-04-29 Thread symfonyMan
Hello, i try to install the EWZRecaptchaBundle in my sf2 project (latest version), i followed the readme, but i have this error : Fatal error: Call to undefined method Symfony\Component\Form\Form::setScriptURLs() in C:\www\fscv2\src\FSC\AccountBundle\Controller\UserController.php on line *

[symfony-users] Re: EWZRecaptchaBundle

2011-04-29 Thread Carl
Hi, The documentation actually needs updating. The section about calling setScriptURLs() is no longer valid. Those values are now set automatically. You shouldn't need to put anything in your controller anymore. All you should need to do is add a 'recaptcha' field in your buildForm() function

[symfony-users] Re : Re: EWZRecaptchaBundle

2011-04-29 Thread symfonyMan
Hello, a great thanks for the replay :) in form class : i add : $builder-add('recaptcha', 'recaptcha'); in my controller : $form = $this-get('form.factory')-create(new RegisterType(), $user); and i added in template : {% form_theme form.recaptcha 'EWZRecaptchaBundle:Form:

[symfony-users] Re : Re: EWZRecaptchaBundle

2011-04-29 Thread symfonyMan
i know what is the problem, i had configured a virtual host in apache to use mydomaine.com as (localhost), i must change the keys or delete the virtual host ;) thanks -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received

[symfony-users] Doctrine:generate:entities

2011-04-29 Thread sergio
Regarding doctrine:generate:entities... I wonder why it don't generate the setId() method in the entities files? Enviado desde mi dispositivo BlackBerry® -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message